MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / coverage

Method coverage

atomic-audit/src/structural.rs:95–108  ·  view source on GitHub ↗

Exact implemented pattern coverage; completing these checks is not an assertion that every concern in the broad audit card was proved absent.

(self)

Source from the content-addressed store, hash-verified

93 /// Exact implemented pattern coverage; completing these checks is not an
94 /// assertion that every concern in the broad audit card was proved absent.
95 pub fn coverage(self) -> &'static str {
96 match self {
97 Self::Syntax => "Registered-language syntax error/missing nodes",
98 Self::RustPlaceholder => "Rust todo!/unimplemented! AST invocations",
99 Self::EmptyCatch => "TypeScript/TSX catch bodies without behavior or comments",
100 Self::FailureMasking => "Rust Err-pattern branches returning Ok; TypeScript/TSX catch returning true",
101 Self::DuplicatedBehavior => "Rust/TypeScript/TSX identical nonempty if/else token bodies, excluding Rust if-let bindings",
102 Self::UnnecessaryMachinery => "Rust same-module private unchanged forwarding chains; excludes public/attributed/generic/adapter boundaries",
103 Self::Manageability => "Unique named bodies with >=100 code lines AND complexity >=15 or nesting >=4; existing concerns need >=3 additional decisions or a new nesting level",
104 Self::AsyncResourceSafety => "Rust same-block known synchronous guards across await; TypeScript/TSX unshadowed async Promise executors",
105 Self::WeakVerification => "Rust empty tests (except should_panic) and test assertions of true or pure self-comparisons",
106 Self::UnsafeShortcuts => "Rust selected qualified unsafe memory operations without local SAFETY argument, or unexplained blanket warnings/clippy::all suppression",
107 }
108 }
109
110 pub fn correction(self) -> &'static str {
111 match self {

Callers 2

render_with_decisionFunction · 0.80
inspect_parsedFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected