Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ParzivalHack/PySpector
/ fires
Function
fires
tests/unit/test_ai_rules.py:107–108 ·
view source on GitHub ↗
(code: str, rule_id: str)
Source
from the content-addressed store, hash-verified
105
106
107
def
fires(code: str, rule_id: str) -> bool:
108
return
any(result[
"rule_id"
] == rule_id
for
result in run_pyspector_ai(code))
109
110
111
class
TestAI206:
Callers
6
test_trust_remote_code_true_fires
Method · 0.70
test_trust_remote_code_false_safe
Method · 0.70
test_keras_h5_model_load_fires
Method · 0.70
test_commented_keras_h5_model_load_safe
Method · 0.70
test_joblib_model_load_fires
Method · 0.70
test_commented_joblib_model_load_safe
Method · 0.70
Calls
1
run_pyspector_ai
Function · 0.85
Tested by
no test coverage detected