Trait test::formatters::OutputFormatter
source · pub(crate) trait OutputFormatter {
// Required methods
fn write_discovery_start(&mut self) -> Result<()>;
fn write_test_discovered(
&mut self,
desc: &TestDesc,
test_type: &str
) -> Result<()>;
fn write_discovery_finish(
&mut self,
state: &ConsoleTestDiscoveryState
) -> Result<()>;
fn write_run_start(
&mut self,
test_count: usize,
shuffle_seed: Option<u64>
) -> Result<()>;
fn write_test_start(&mut self, desc: &TestDesc) -> Result<()>;
fn write_timeout(&mut self, desc: &TestDesc) -> Result<()>;
fn write_result(
&mut self,
desc: &TestDesc,
result: &TestResult,
exec_time: Option<&TestExecTime>,
stdout: &[u8],
state: &ConsoleTestState
) -> Result<()>;
fn write_run_finish(&mut self, state: &ConsoleTestState) -> Result<bool>;
}
🔬This is a nightly-only experimental API. (
test
)Required Methods§
sourcefn write_discovery_start(&mut self) -> Result<()>
fn write_discovery_start(&mut self) -> Result<()>
🔬This is a nightly-only experimental API. (
test
)sourcefn write_test_discovered(
&mut self,
desc: &TestDesc,
test_type: &str
) -> Result<()>
fn write_test_discovered( &mut self, desc: &TestDesc, test_type: &str ) -> Result<()>
🔬This is a nightly-only experimental API. (
test
)sourcefn write_discovery_finish(
&mut self,
state: &ConsoleTestDiscoveryState
) -> Result<()>
fn write_discovery_finish( &mut self, state: &ConsoleTestDiscoveryState ) -> Result<()>
🔬This is a nightly-only experimental API. (
test
)sourcefn write_run_start(
&mut self,
test_count: usize,
shuffle_seed: Option<u64>
) -> Result<()>
fn write_run_start( &mut self, test_count: usize, shuffle_seed: Option<u64> ) -> Result<()>
🔬This is a nightly-only experimental API. (
test
)sourcefn write_test_start(&mut self, desc: &TestDesc) -> Result<()>
fn write_test_start(&mut self, desc: &TestDesc) -> Result<()>
🔬This is a nightly-only experimental API. (
test
)sourcefn write_timeout(&mut self, desc: &TestDesc) -> Result<()>
fn write_timeout(&mut self, desc: &TestDesc) -> Result<()>
🔬This is a nightly-only experimental API. (
test
)sourcefn write_result(
&mut self,
desc: &TestDesc,
result: &TestResult,
exec_time: Option<&TestExecTime>,
stdout: &[u8],
state: &ConsoleTestState
) -> Result<()>
fn write_result( &mut self, desc: &TestDesc, result: &TestResult, exec_time: Option<&TestExecTime>, stdout: &[u8], state: &ConsoleTestState ) -> Result<()>
🔬This is a nightly-only experimental API. (
test
)sourcefn write_run_finish(&mut self, state: &ConsoleTestState) -> Result<bool>
fn write_run_finish(&mut self, state: &ConsoleTestState) -> Result<bool>
🔬This is a nightly-only experimental API. (
test
)