netsleuth/src/netsleuth
Horizontal42 fb28b0ac37
🧪 Add tests for check_fresh in reputation.py (#9)
* 🧪 Add tests for check_fresh and improve coverage in reputation.py

* Extract `check_fresh` to a module-level function for testability.
* Add comprehensive tests for `check_fresh` covering missing, fresh, and stale cache files.
* Add a missing test for `reverse_ip` with IPv6 to hit 100% coverage on `reputation.py`.

Co-authored-by: Horizontal42 <75383519+Horizontal42@users.noreply.github.com>

* drop redundant pytest-cov dep addition

---------

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
2026-08-19 17:09:13 +03:00
..
probes Refactor collect_path_diversity to run probes concurrently using asyncio.gather. (#25) 2026-08-19 16:56:22 +03:00
__init__.py rename package netcheck to netsleuth (name taken on pypi) 2026-08-09 11:43:00 +03:00
__main__.py rename package netcheck to netsleuth (name taken on pypi) 2026-08-09 11:43:00 +03:00
alerting.py give --watch a per-tick verdict and optional webhook alerts 2026-08-12 22:26:31 +03:00
bgp.py Add tests for _os_timezone function (#22) 2026-08-19 16:40:44 +03:00
cli.py Add tests for _os_timezone function (#22) 2026-08-19 16:40:44 +03:00
compare.py add Prometheus/CSV export, auto-diff vs previous run, and --trend 2026-08-12 22:10:21 +03:00
config.py 🔒 Remove hardcoded Fast.com API token (#13) 2026-08-19 16:48:52 +03:00
exporter.py sort reports into logs/YYYY/MM/DD, readable filenames 2026-08-14 12:09:15 +03:00
history.py sort reports into logs/YYYY/MM/DD, readable filenames 2026-08-14 12:09:15 +03:00
iface.py add --interface flag to force outbound probing through a specific adapter 2026-08-09 13:36:06 +03:00
interpret.py Refactor tls_findings into smaller helper functions. (#28) 2026-08-19 17:01:41 +03:00
ip_geo.py detect CGNAT, NAT64, and first-hop-vs-path issues separately 2026-08-12 21:06:01 +03:00
metrics.py add Prometheus/CSV export, auto-diff vs previous run, and --trend 2026-08-12 22:10:21 +03:00
models.py measure QUIC/HTTP3 handshake RTT to catch UDP/443 blocking (--quic) 2026-08-13 01:56:21 +03:00
netinfo.py detect CGNAT, NAT64, and first-hop-vs-path issues separately 2026-08-12 21:06:01 +03:00
orchestration.py Add tests for _os_timezone function (#22) 2026-08-19 16:40:44 +03:00
reputation.py 🧪 Add tests for check_fresh in reputation.py (#9) 2026-08-19 17:09:13 +03:00
speed.py 🔒 Remove hardcoded Fast.com API token (#13) 2026-08-19 16:48:52 +03:00
stats.py add jitter matrix (p95/p99/cv) to ping stats 2026-08-09 17:34:06 +03:00
traceparse.py use list comprehension for _unix_probes 2026-08-09 16:09:29 +03:00
trend.py add Prometheus/CSV export, auto-diff vs previous run, and --trend 2026-08-12 22:10:21 +03:00
watch.py Refactor deeply nested 'run_watch' function (#18) 2026-08-19 17:04:22 +03:00