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

Function test_assert_handoff_scope_same_domain

tests/test_recon_engine.py:155–163  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

153
154
155def test_assert_handoff_scope_same_domain():
156 from recon_engine import ReconEngine, ReconScanState, ReconType
157 engine = ReconEngine.__new__(ReconEngine)
158 engine._lock = __import__("threading").Lock()
159 engine.active_scans = {
160 "S1": ReconScanState(scan_id="S1", target="https://example.com", recon_types=[ReconType.DNS_PASSIVE]),
161 }
162 violations = engine.assert_handoff_scope("S1", ["api.example.com", "dev.example.com"])
163 assert violations == []
164
165
166def test_assert_handoff_scope_cross_domain():

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