(self)
| 110 | |
| 111 | class TestAI206: |
| 112 | def test_rule_metadata(self): |
| 113 | rule = _ai_rule("AI206") |
| 114 | assert rule["severity"] == "High" |
| 115 | assert rule["cwe"] == "CWE-94" |
| 116 | assert rule["ast_match"] == AI206_MATCHER |
| 117 | |
| 118 | def test_matcher_targets_true_keyword_only(self): |
| 119 | true_code = 'AutoModelForCausalLM.from_pretrained("example/model", trust_remote_code=True)' |
nothing calls this directly
no test coverage detected