Documentation

expect package

The expect package includes functions to mark any expectations for a testcase to be satisfied before the testcase finishes running. Import the testing/expect package:

import "testing/expect"

These functions are intended to be called at the beginning of a testcase, but it doesn’t really matter when they get invoked within the testcase.

Functions


Was this page helpful?

Thank you for your feedback!


Upgrade to InfluxDB Cloud or InfluxDB 2.0!

InfluxDB Cloud and InfluxDB OSS 2.0 ready for production.