(fixtures, fuzzy_rule_match)
| 1 | |
| 2 | def 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 |
nothing calls this directly
no test coverage detected