Module test::time::time_constants

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

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

To override values for unit-tests, use a constant RUST_TEST_TIME_UNIT, To override values for integration tests, use a constant RUST_TEST_TIME_INTEGRATION, To override values for doctests, use a constant RUST_TEST_TIME_DOCTEST.

Example of the expected format is RUST_TEST_TIME_xxx=100,200, where 100 means warn time, and 200 means critical time.

Constants