MCPcopy Create free account
hub / github.com/NVIDIA/SkillSpector / test_oh1_detected

Method test_oh1_detected

tests/unit/test_patterns_new.py:244–245  ·  view source on GitHub ↗
(self, content: str, filename: str, filetype: str)

Source from the content-addressed store, hash-verified

242 ],
243 )
244 def test_oh1_detected(self, content: str, filename: str, filetype: str) -> None:
245 assert any(f.rule_id == "OH1" for f in oh_mod.analyze(content, filename, filetype))
246
247 def test_oh1_confidence_boost_for_python(self) -> None:
248 findings = oh_mod.analyze('exec(response["code"])', "runner.py", "python")

Callers

nothing calls this directly

Calls 1

analyzeMethod · 0.80

Tested by

no test coverage detected