MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / test_assert_handoff_scope_force_bypass

Function test_assert_handoff_scope_force_bypass

tests/test_recon_engine.py:177–185  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

175
176
177def test_assert_handoff_scope_force_bypass():
178 from recon_engine import ReconEngine, ReconScanState, ReconType
179 engine = ReconEngine.__new__(ReconEngine)
180 engine._lock = __import__("threading").Lock()
181 engine.active_scans = {
182 "S1": ReconScanState(scan_id="S1", target="https://example.com", recon_types=[ReconType.DNS_PASSIVE]),
183 }
184 violations = engine.assert_handoff_scope("S1", ["evil.com"], force=True)
185 assert violations == []
186
187
188def test_get_handoff_options_after_ok_scan():

Callers

nothing calls this directly

Calls 3

ReconScanStateClass · 0.90
assert_handoff_scopeMethod · 0.80
__new__Method · 0.45

Tested by

no test coverage detected