()
| 15 | |
| 16 | @pytest.fixture |
| 17 | def 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 | # --------------------------------------------------------------------------- |
nothing calls this directly
no test coverage detected