#[non_exhaustive]pub enum MismatchReason {
NotBenchmark,
Ignored,
String,
Expression,
Partition,
RerunAlreadyPassed,
DefaultFilter,
}Expand description
The reason for why a test doesn’t match a filter.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
NotBenchmark
Nextest is running in benchmark mode and this test is not a benchmark.
Ignored
This test does not match the run-ignored option in the filter.
String
This test does not match the provided string filters.
Expression
This test does not match the provided expression filters.
Partition
This test is in a different partition.
RerunAlreadyPassed
This is a rerun and the test already passed.
DefaultFilter
This test is filtered out by the default-filter.
This is the lowest-priority reason for skipping a test.
Implementations§
Source§impl MismatchReason
impl MismatchReason
Sourcepub const ALL_VARIANTS: &'static [Self]
pub const ALL_VARIANTS: &'static [Self]
All known variants of MismatchReason.
This slice is provided for exhaustive testing. New variants may be added in future versions, so this slice’s length is not guaranteed to be stable.
Sourcepub fn is_ignore_mismatch(self) -> bool
pub fn is_ignore_mismatch(self) -> bool
Returns true if the test was skipped because its ignore status didn’t
match the user-provided --run-ignored setting.
Sourcepub fn is_substantive_skip(self) -> bool
pub fn is_substantive_skip(self) -> bool
Returns true if the skip reflects a real filtering decision, rather than a run-mode artifact such as a non-benchmark test excluded from a benchmark run.
Trait Implementations§
Source§impl Arbitrary for MismatchReason
impl Arbitrary for MismatchReason
Source§type Parameters = ()
type Parameters = ()
arbitrary_with accepts for configuration
of the generated Strategy. Parameters must implement Default.Source§type Strategy = BoxedStrategy<MismatchReason>
type Strategy = BoxedStrategy<MismatchReason>
Strategy used to generate values of type Self.Source§fn arbitrary_with(_: Self::Parameters) -> Self::Strategy
fn arbitrary_with(_: Self::Parameters) -> Self::Strategy
Source§impl Clone for MismatchReason
impl Clone for MismatchReason
Source§fn clone(&self) -> MismatchReason
fn clone(&self) -> MismatchReason
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more