MCPcopy Index your code
hub / github.com/SourceCode-AI/aura / test_generic_sqli

Function test_generic_sqli

tests/test_sqli.py:2–16  ·  view source on GitHub ↗
(fixtures, fuzzy_rule_match)

Source from the content-addressed store, hash-verified

1
2def test_generic_sqli(fixtures, fuzzy_rule_match):
3 output = fixtures.scan_test_file('sqli.py')
4
5 lines = [] #TODO: [15, 22, 29]
6
7 matches = [
8 {
9 'type': 'TaintAnomaly',
10 'message': 'Tainted input is passed to the sink',
11 'line_no': x
12 } for x in lines
13 ]
14
15 for x in matches:
16 assert any(fuzzy_rule_match(h, x) for h in output['hits']), x

Callers

nothing calls this directly

Calls 2

fuzzy_rule_matchFunction · 0.85
scan_test_fileMethod · 0.80

Tested by

no test coverage detected