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

Function analyzer

tests/test_passive_host_discovery.py:23–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21
22@pytest.fixture
23def analyzer():
24 with patch.object(TrafficAnalyzer, '_detect_interface', return_value='lo'), \
25 patch.object(TrafficAnalyzer, '_detect_local_ips',
26 return_value={'127.0.0.1', '192.168.1.10'}), \
27 patch.object(TrafficAnalyzer, '_detect_gateway_ips',
28 return_value={'192.168.1.1'}):
29 a = TrafficAnalyzer(shared_data=None, interface='lo')
30 a.MAX_ALERTS_PER_MINUTE = 10_000
31 a._alert_dedup_window = 0
32 return a
33
34
35# ---------------------------------------------------------------------------

Callers

nothing calls this directly

Calls 1

TrafficAnalyzerClass · 0.90

Tested by

no test coverage detected