#[non_exhaustive]pub struct Summary {
pub definitions_analyzed: usize,
pub feature_steps_analyzed: usize,
pub findings: usize,
pub errors: usize,
pub warnings: usize,
pub suppressed: usize,
pub by_rule: BTreeMap<String, usize>,
pub duplication: DuplicationThreshold,
}Expand description
Aggregate counts shared by every report format.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.definitions_analyzed: usizeNumber of extracted step definitions.
feature_steps_analyzed: usizeNumber of concrete feature steps.
findings: usizeNumber of active findings.
errors: usizeNumber of active error findings.
warnings: usizeNumber of active warning findings.
suppressed: usizeNumber of suppressed findings.
by_rule: BTreeMap<String, usize>Active findings grouped by stable rule name.
duplication: DuplicationThresholdPercentage-based duplication quality-gate result.
Implementations§
Source§impl Summary
impl Summary
Sourcepub fn from_result(result: &AnalysisResult) -> Self
pub fn from_result(result: &AnalysisResult) -> Self
Computes report totals using the strict default duplication threshold.
Sourcepub fn from_result_with_threshold(
result: &AnalysisResult,
threshold: f64,
) -> Self
pub fn from_result_with_threshold( result: &AnalysisResult, threshold: f64, ) -> Self
Computes report totals using threshold as the allowed duplication percentage.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Summary
impl RefUnwindSafe for Summary
impl Send for Summary
impl Sync for Summary
impl Unpin for Summary
impl UnsafeUnpin for Summary
impl UnwindSafe for Summary
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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