pub struct MissingCoverageAnalyzer;Expand description
MissingCoverageAnalyzer — enforces missing_coverage (heuristic, Notice).
Strategy: for every function-shaped inline code span in Markdown (fn_name()
or Type::method()) where the target function exists in the AST, look for
at least one occurrence of the name in a test-scope file. Test-scope is any
file under tests/ or any .rs file containing a #[test] attribute.
The rule intentionally only fires for symbols that do exist — otherwise
symbol_absence would already have flagged them.
Trait Implementations§
Source§impl Default for MissingCoverageAnalyzer
impl Default for MissingCoverageAnalyzer
Source§impl DriftAnalyzer for MissingCoverageAnalyzer
impl DriftAnalyzer for MissingCoverageAnalyzer
fn analyze(&self, ctx: &ProjectContext) -> Vec<Divergence>
Auto Trait Implementations§
impl Freeze for MissingCoverageAnalyzer
impl RefUnwindSafe for MissingCoverageAnalyzer
impl Send for MissingCoverageAnalyzer
impl Sync for MissingCoverageAnalyzer
impl Unpin for MissingCoverageAnalyzer
impl UnsafeUnpin for MissingCoverageAnalyzer
impl UnwindSafe for MissingCoverageAnalyzer
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> 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