Commit 017fc69
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
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5346 | 5346 | | |
5347 | 5347 | | |
5348 | 5348 | | |
| 5349 | + | |
5349 | 5350 | | |
5350 | 5351 | | |
5351 | 5352 | | |
| |||
0 commit comments