Struct greenwasm_spectest::SpectestResult [−][src]
#[must_use]pub struct SpectestResult { pub failures: Vec<(String, u64, String)>, pub successes: usize, }
Result of running a series of script commands.
Fields
failures: Vec<(String, u64, String)>
List of failed commands consisting of (filename, line number, panic message) tuples.
successes: usize
Number of successful commands.
Methods
impl SpectestResult
[src]
impl SpectestResult
pub fn present(self)
[src]
pub fn present(self)
Displays the results in Self
in a form similar
to Rusts testsuite, and raises an panic if any tests failed.
This is intended to be called from a #[test]
function.
Auto Trait Implementations
impl Send for SpectestResult
impl Send for SpectestResult
impl Sync for SpectestResult
impl Sync for SpectestResult