Struct term_transcript::test::TestStats [−][src]
pub struct TestStats { /* fields omitted */ }
This is supported on crate feature
test
only.Expand description
Stats of a single snapshot test output by TestConfig::test_transcript_for_stats()
.
Implementations
impl TestStats
[src]
impl TestStats
[src]pub fn passed(&self, match_level: MatchKind) -> usize
[src]
pub fn passed(&self, match_level: MatchKind) -> usize
[src]Returns the number of successfully matched user inputs with at least the specified
match_level
.
pub fn errors(&self, match_level: MatchKind) -> usize
[src]
pub fn errors(&self, match_level: MatchKind) -> usize
[src]Returns the number of user inputs that do not match with at least the specified
match_level
.
pub fn matches(&self) -> &[Option<MatchKind>]
[src]
pub fn matches(&self) -> &[Option<MatchKind>]
[src]Returns match kinds per each user input of the tested Transcript
. None
values
mean no match.
pub fn assert_no_errors(&self, match_level: MatchKind)
[src]
pub fn assert_no_errors(&self, match_level: MatchKind)
[src]Panics if these stats contain errors.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TestStats
impl Send for TestStats
impl Sync for TestStats
impl Unpin for TestStats
impl UnwindSafe for TestStats
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more