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

Class TestJustification

tests/unit/test_a_sink_rules.py:115–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113
114# --- CENTER927 / LJUST930 / RJUST933 ---
115class TestJustification:
116 def test_center_silent_disabled(self):
117 # CENTER927 disabled: string centering is a cosmetic operation — not a sink.
118 assert not_fires("w=request.GET.get('w'); 'x'.center(w)", "CENTER927")
119 def test_center_constant_safe(self):
120 assert not_fires("'x'.center(80)", "CENTER927")
121 def test_ljust_silent_disabled(self):
122 # LJUST930 disabled: string left-justification is not a security sink.
123 assert not_fires("w=request.GET.get('w'); 'x'.ljust(w)", "LJUST930")
124 def test_rjust_silent_disabled(self):
125 # RJUST933 disabled: zero findings across all scanned repos.
126 assert not_fires("w=request.GET.get('w'); 'x'.rjust(w)", "RJUST933")
127
128# --- RANGE1056 ---
129class TestRange1056:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected