pub(crate) 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(crate) fn new(opts: &TestOpts) -> Result<ConsoleTestState>
🔬This is a nightly-only experimental API. (
test
)pub(crate) fn write_log<F, S>(&mut self, msg: F) -> Result<()>
🔬This is a nightly-only experimental API. (
test
)pub(crate) 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 Freeze for ConsoleTestState
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
Source§impl<T> SizedTypeProperties for T
impl<T> SizedTypeProperties for T
Source§#[doc(hidden)] const IS_ZST: bool = _
#[doc(hidden)] const IS_ZST: bool = _
🔬This is a nightly-only experimental API. (
sized_type_properties
)Source§#[doc(hidden)] const LAYOUT: Layout = _
#[doc(hidden)] const LAYOUT: Layout = _
🔬This is a nightly-only experimental API. (
sized_type_properties
)Source§#[doc(hidden)] const MAX_SLICE_LEN: usize = _
#[doc(hidden)] const MAX_SLICE_LEN: usize = _
🔬This is a nightly-only experimental API. (
sized_type_properties
)The largest safe length for a
[Self]
. Read more