MCPcopy Create free account
hub / github.com/ParzivalHack/PySpector / test_constant_safe

Method test_constant_safe

tests/unit/test_a_sink_rules.py:59–60  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

57 # sink; generates FPs in code that uses dir() for reflection/debugging.
58 assert not_fires("o=request.GET.get('obj'); dir(o)", "DIR849")
59 def test_constant_safe(self):
60 assert not_fires("dir(str)", "DIR849")
61
62# --- CALLABLE1131 ---
63class TestCallable1131:

Callers

nothing calls this directly

Calls 1

not_firesFunction · 0.70

Tested by

no test coverage detected