()
| 153 | |
| 154 | |
| 155 | def 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 | |
| 166 | def test_assert_handoff_scope_cross_domain(): |
nothing calls this directly
no test coverage detected