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

Function analyzer

tests/test_broadcast_suppression.py:17–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15
16@pytest.fixture
17def analyzer():
18 with patch.object(TrafficAnalyzer, '_detect_interface', return_value='lo'), \
19 patch.object(TrafficAnalyzer, '_detect_local_ips',
20 return_value={'127.0.0.1', '192.168.1.10'}):
21 a = TrafficAnalyzer(shared_data=None, interface='lo')
22 a.MAX_ALERTS_PER_MINUTE = 10_000
23 a._alert_dedup_window = 0
24 return a
25
26
27# ---------------------------------------------------------------------------

Callers

nothing calls this directly

Calls 1

TrafficAnalyzerClass · 0.90

Tested by

no test coverage detected