Struct test::console::ConsoleTestState
source · pub struct ConsoleTestState {Show 14 fields
pub log_out: Option<File>,
pub total: usize,
pub passed: usize,
pub failed: usize,
pub ignored: usize,
pub filtered_out: usize,
pub measured: usize,
pub exec_time: Option<TestSuiteExecTime>,
pub metrics: MetricMap,
pub failures: Vec<(TestDesc, Vec<u8>)>,
pub not_failures: Vec<(TestDesc, Vec<u8>)>,
pub ignores: Vec<(TestDesc, Vec<u8>)>,
pub time_failures: Vec<(TestDesc, Vec<u8>)>,
pub options: Options,
}
🔬This is a nightly-only experimental API. (
test
)Fields§
§log_out: Option<File>
🔬This is a nightly-only experimental API. (
§test
)total: usize
🔬This is a nightly-only experimental API. (
§test
)passed: usize
🔬This is a nightly-only experimental API. (
§test
)failed: usize
🔬This is a nightly-only experimental API. (
§test
)ignored: usize
🔬This is a nightly-only experimental API. (
§test
)filtered_out: usize
🔬This is a nightly-only experimental API. (
§test
)measured: usize
🔬This is a nightly-only experimental API. (
§test
)exec_time: Option<TestSuiteExecTime>
🔬This is a nightly-only experimental API. (
§test
)metrics: MetricMap
🔬This is a nightly-only experimental API. (
§test
)failures: Vec<(TestDesc, Vec<u8>)>
🔬This is a nightly-only experimental API. (
§test
)not_failures: Vec<(TestDesc, Vec<u8>)>
🔬This is a nightly-only experimental API. (
§test
)ignores: Vec<(TestDesc, Vec<u8>)>
🔬This is a nightly-only experimental API. (
§test
)time_failures: Vec<(TestDesc, Vec<u8>)>
🔬This is a nightly-only experimental API. (
§test
)options: Options
🔬This is a nightly-only experimental API. (
test
)Implementations§
source§impl ConsoleTestState
impl ConsoleTestState
pub fn new(opts: &TestOpts) -> Result<ConsoleTestState>
🔬This is a nightly-only experimental API. (
test
)pub fn write_log<F, S>(&mut self, msg: F) -> Result<()>where S: AsRef<str>, F: FnOnce() -> S,
🔬This is a nightly-only experimental API. (
test
)pub fn write_log_result( &mut self, test: &TestDesc, result: &TestResult, exec_time: Option<&TestExecTime> ) -> Result<()>
🔬This is a nightly-only experimental API. (
test
)fn current_test_count(&self) -> usize
🔬This is a nightly-only experimental API. (
test
)Auto Trait Implementations§
impl RefUnwindSafe for ConsoleTestState
impl Send for ConsoleTestState
impl Sync for ConsoleTestState
impl Unpin for ConsoleTestState
impl UnwindSafe for ConsoleTestState
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