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

List of failed commands consisting of (filename, line number, panic message) tuples.

Number of successful commands.

Methods

impl SpectestResult
[src]

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