Skip to content

Commit 017fc69

Browse files
hyperpolymathclaude
andcommitted
test(analyze_rust): add missing browser_extension field to test fixture
The test initialiser at src/assail/analyzer.rs:5345 constructed Analyzer with only 3 fields (target, language, verbose) but the struct grew a fourth field (browser_extension: bool) without the inline fixture being updated. This caused E0063 at every 'cargo test' compile, taking down the entire test-build even though no test logic was wrong. One-line fix: default browser_extension to false (matches the production Analyzer::new() path which also defaults it to false). Verified: `cargo test --release --lib assail::analyzer -- analyze_rust` now compiles and all 20 relevant tests pass (including the dangerous- insecure-decode test whose fixture this is). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 6f18caf commit 017fc69

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/assail/analyzer.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5346,6 +5346,7 @@ fn few_unwraps() {
53465346
target: std::path::PathBuf::from("auth.rs"),
53475347
language: crate::types::Language::Rust,
53485348
verbose: false,
5349+
browser_extension: false,
53495350
};
53505351
let content = r#"
53515352
use jsonwebtoken::{dangerous_insecure_decode, DecodingKey, TokenData};

0 commit comments

Comments
 (0)