pub struct TestFilter { /* private fields */ }Expand description
A compiled test filter that can match test cases by name pattern.
Implementations§
Source§impl TestFilter
impl TestFilter
Sourcepub fn include_csv(self, patterns: &str) -> Self
pub fn include_csv(self, patterns: &str) -> Self
Add multiple include patterns from a comma-separated string.
Sourcepub fn exclude_csv(self, patterns: &str) -> Self
pub fn exclude_csv(self, patterns: &str) -> Self
Add multiple exclude patterns from a comma-separated string.
Sourcepub fn status(self, status: TestStatus) -> Self
pub fn status(self, status: TestStatus) -> Self
Only show tests with the given status.
Sourcepub fn matches(&self, test: &TestCase, suite_name: &str) -> bool
pub fn matches(&self, test: &TestCase, suite_name: &str) -> bool
Check if a test case matches this filter.
Sourcepub fn apply(&self, result: &TestRunResult) -> TestRunResult
pub fn apply(&self, result: &TestRunResult) -> TestRunResult
Apply this filter to a test run result, returning a filtered copy.
Trait Implementations§
Source§impl Clone for TestFilter
impl Clone for TestFilter
Source§fn clone(&self) -> TestFilter
fn clone(&self) -> TestFilter
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TestFilter
impl Debug for TestFilter
Auto Trait Implementations§
impl Freeze for TestFilter
impl RefUnwindSafe for TestFilter
impl Send for TestFilter
impl Sync for TestFilter
impl Unpin for TestFilter
impl UnsafeUnpin for TestFilter
impl UnwindSafe for TestFilter
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