(fixtures)
| 70 | |
| 71 | @pytest.mark.e2e |
| 72 | def test_custom_analyzer(fixtures): |
| 73 | fixtures.scan_and_match( |
| 74 | "obfuscated.py", |
| 75 | matches=[ |
| 76 | { |
| 77 | "type": "CustomAnalyzer", |
| 78 | "tags": ["test-code", "custom_tag"], |
| 79 | "extra": { |
| 80 | "string_content": "Hello world" |
| 81 | } |
| 82 | }, |
| 83 | { |
| 84 | "type": "CustomAnalyzer", |
| 85 | "tags": ["test-code", "custom_tag"], |
| 86 | "extra": { |
| 87 | "string_content": "~/.profile" |
| 88 | } |
| 89 | } |
| 90 | ], |
| 91 | excludes=OBFUSCATED_DEFAULT_MATCHES, |
| 92 | args=["-a", "custom_analyzer:CustomAnalyzer"] |
| 93 | ) |
| 94 | |
| 95 | |
| 96 | def test_scan_min_score_option(fixtures): |
nothing calls this directly
no test coverage detected