pub struct TestFile {
pub path: String,
pub ok: bool,
pub diagnostics: Vec<Diagnostic>,
pub error: Option<String>,
pub file_level: bool,
pub passed: usize,
pub failed: usize,
pub failures: Vec<String>,
pub tests: Vec<TestCase>,
pub duration_ms: f64,
pub snapshots_written: Vec<String>,
pub snapshots_updated: Vec<String>,
}Fields§
§path: String§ok: bool§diagnostics: Vec<Diagnostic>§error: Option<String>Runtime error outside any test (the file itself raised): the text htl test
prints for it, htl::developer_message with its frames, carried unchanged.
file_level: boolNo test library was used: the file passed by running to completion.
passed: usize§failed: usize§failures: Vec<String>One entry per failing test: the message and traceback as the text output prints them under the file, unchanged.
tests: Vec<TestCase>§duration_ms: f64§snapshots_written: Vec<String>§snapshots_updated: Vec<String>Implementations§
Source§impl TestFile
impl TestFile
pub fn from_report(rep: &FileReport, diagnostics: Vec<Diagnostic>) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TestFile
impl RefUnwindSafe for TestFile
impl Send for TestFile
impl Sync for TestFile
impl Unpin for TestFile
impl UnsafeUnpin for TestFile
impl UnwindSafe for TestFile
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more