pub trait TestFunctionExt {
// Provided methods
fn test_function_kind(&self) -> TestFunctionKind { ... }
fn is_setup(&self) -> bool { ... }
fn is_any_test(&self) -> bool { ... }
fn is_any_test_fail(&self) -> bool { ... }
fn is_unit_test(&self) -> bool { ... }
fn is_before_test_setup(&self) -> bool { ... }
fn is_fuzz_test(&self) -> bool { ... }
fn is_invariant_test(&self) -> bool { ... }
fn is_after_invariant(&self) -> bool { ... }
fn is_fixture(&self) -> bool { ... }
}
Expand description
Extension trait for Function
.
Provided Methods§
Sourcefn test_function_kind(&self) -> TestFunctionKind
fn test_function_kind(&self) -> TestFunctionKind
Returns the kind of test function.
Sourcefn is_any_test(&self) -> bool
fn is_any_test(&self) -> bool
Returns true
if this function is a unit, fuzz, or invariant test.
Sourcefn is_any_test_fail(&self) -> bool
fn is_any_test_fail(&self) -> bool
Returns true
if this function is a test that should fail.
Sourcefn is_unit_test(&self) -> bool
fn is_unit_test(&self) -> bool
Returns true
if this function is a unit test.
Sourcefn is_before_test_setup(&self) -> bool
fn is_before_test_setup(&self) -> bool
Returns true
if this function is a beforeTestSetup
function.
Sourcefn is_fuzz_test(&self) -> bool
fn is_fuzz_test(&self) -> bool
Returns true
if this function is a fuzz test.
Sourcefn is_invariant_test(&self) -> bool
fn is_invariant_test(&self) -> bool
Returns true
if this function is an invariant test.
Sourcefn is_after_invariant(&self) -> bool
fn is_after_invariant(&self) -> bool
Returns true
if this function is an afterInvariant
function.
Sourcefn is_fixture(&self) -> bool
fn is_fixture(&self) -> bool
Returns true
if this function is a fixture
function.