Module test::test [−][src]
🔬 This is a nightly-only experimental API. (
test)Re-exports
pub use crate::assert_test_result;Experimental
pub use crate::bench::Bencher;Experimental
pub use crate::filter_tests;Experimental
pub use crate::run_test;Experimental
pub use crate::test_main;Experimental
pub use crate::test_main_static;Experimental
pub use crate::test_result::TrFailed;Experimental
pub use crate::test_result::TrFailedMsg;Experimental
pub use crate::test_result::TrIgnored;Experimental
pub use crate::test_result::TrOk;Experimental
pub use crate::types::DynTestFn;Experimental
pub use crate::types::DynTestName;Experimental
pub use crate::types::StaticBenchFn;Experimental
pub use crate::types::StaticTestFn;Experimental
pub use crate::types::StaticTestName;Experimental
Structs
Experimental
Experimental
Experimental
Options for the test run defined by the caller (instead of CLI arguments). In case we want to add other options as well, just add them in this struct.
Experimental
Experimental
Experimental
The measured execution time of a unit test.
Experimental
Experimental
Experimental
Structure with parameters for calculating test execution time.
Enums
Experimental
Whether to execute tests concurrently or not
Experimental
Whether ignored test should be run or not
Experimental
Experimental
Whether test is expected to panic or not
Experimental
Experimental
Experimental
Type of the test according to the rust book conventions.
Functions
Experimental
Parses command line arguments into test options.
Returns None if help was requested (since we only show help message and don’t run tests),
returns Some(Err(..)) if provided arguments are incorrect,
otherwise creates a TestOpts object and returns it.