#[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 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 moreSource§impl Debug for MismatchReason
impl Debug for MismatchReason
Source§impl<'de> Deserialize<'de> for MismatchReason
impl<'de> Deserialize<'de> for MismatchReason
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Display for MismatchReason
impl Display for MismatchReason
Source§impl PartialEq for MismatchReason
impl PartialEq for MismatchReason
Source§fn eq(&self, other: &MismatchReason) -> bool
fn eq(&self, other: &MismatchReason) -> bool
self and other values to be equal, and is used by ==.