Module test::time

source ·
🔬This is a nightly-only experimental API. (test)
Expand description

Module time contains everything related to the time measurement of unit tests execution. The purposes of this module:

  • Check whether test is timed out.
  • Provide helpers for report-time and measure-time options.
  • Provide newtypes for executions times.

Modules

  • time_constantsExperimental
    This small module contains constants used by report-time option. Those constants values will be used if corresponding environment variables are not set.

Structs

  • TestExecTimeExperimental
    The measured execution time of a unit test.
  • TestSuiteExecTimeExperimental
    The measured execution time of the whole test suite.
  • TestTimeOptionsExperimental
    Structure with parameters for calculating test execution time.
  • TimeThresholdExperimental
    Structure denoting time limits for test execution.

Constants

Functions