pub struct TestRunner;Expand description
Test runner integration utilities
Implementations§
Source§impl TestRunner
impl TestRunner
Sourcepub fn format_result<T>(result: &PropertyResult<T>) -> Stringwhere
T: Debug,
pub fn format_result<T>(result: &PropertyResult<T>) -> Stringwhere
T: Debug,
Format a property test result for standard test output
Sourcepub fn format_success<T>(success: &TestSuccess<T>) -> String
pub fn format_success<T>(success: &TestSuccess<T>) -> String
Format a successful test result
Sourcepub fn format_failure<T>(failure: &TestFailure<T>) -> Stringwhere
T: Debug,
pub fn format_failure<T>(failure: &TestFailure<T>) -> Stringwhere
T: Debug,
Format a failed test result
Sourcepub fn create_panic_message<T>(failure: &TestFailure<T>) -> Stringwhere
T: Debug,
pub fn create_panic_message<T>(failure: &TestFailure<T>) -> Stringwhere
T: Debug,
Create a panic message for property test failures
Sourcepub fn is_cargo_test() -> bool
pub fn is_cargo_test() -> bool
Check if we’re running under cargo test
Sourcepub fn is_verbose_output() -> bool
pub fn is_verbose_output() -> bool
Check if we’re running with verbose output
Sourcepub fn print_progress(message: &str)
pub fn print_progress(message: &str)
Print test progress if verbose output is enabled
Sourcepub fn print_statistics<T>(success: &TestSuccess<T>)
pub fn print_statistics<T>(success: &TestSuccess<T>)
Print test statistics if verbose output is enabled
Auto Trait Implementations§
impl Freeze for TestRunner
impl RefUnwindSafe for TestRunner
impl Send for TestRunner
impl Sync for TestRunner
impl Unpin for TestRunner
impl UnwindSafe for TestRunner
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more