MCPcopy Create free account
hub / github.com/SourceCode-AI/aura / test_custom_analyzer

Function test_custom_analyzer

tests/test_cli.py:72–93  ·  view source on GitHub ↗
(fixtures)

Source from the content-addressed store, hash-verified

70
71@pytest.mark.e2e
72def 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
96def test_scan_min_score_option(fixtures):

Callers

nothing calls this directly

Calls 1

scan_and_matchMethod · 0.80

Tested by

no test coverage detected