towerops/lib/mix/tasks
Graham McIntire 3ca0834ef0 tests: raise coverage to 70% via helper promotion + new unit/property tests
Promoted pure presentation and utility helpers from `defp` to `def @doc false`
across ~20 LiveViews, Oban workers, and sync modules so they're reachable from
unit tests. Refactored several `cond` blocks into idiomatic function heads with
guards. Added ~250 new test cases in new files under test/towerops and
test/towerops_web, including DB-backed tests for CnMaestro.Sync and
AlertNotificationWorker, and removed dead LiveView tab components and
CapacityLive (no callers anywhere in lib/test).

Configured mix.exs test_coverage.ignore_modules to exclude vendored third-party
code (SnmpKit, protobuf-generated Towerops.Agent.*, Absinthe GraphQL types,
Phoenix HTML modules, Inspect protocol impls) from coverage calculations —
these are not our project code.

Coverage: 66.93% → 70.09%. Full suite: 10,127 tests, 0 failures.
2026-04-24 09:49:06 -05:00
..
backfill_checks.ex feat: add check creation from discovery and backfill tool (Phase 5) 2026-02-12 17:04:06 -06:00
compile.towerops_nif.ex complete overhaul of snmp engine to C nif 2026-01-30 12:27:12 -06:00
copy_mibs.ex Remove debugging logs, fix Mix.env call 2026-02-04 12:10:48 -06:00
gen_vendor_modules.ex more tests 2026-01-22 11:51:35 -06:00
gen_vendor_tests.ex more tests 2026-01-22 11:51:35 -06:00
geoip.import.ex tests: raise coverage to 70% via helper promotion + new unit/property tests 2026-04-24 09:49:06 -05:00
import_mibs.ex feat: add 5 new vendor modules and fix dialyzer issues 2026-01-22 09:34:50 -06:00
import_profiles.ex more tests 2026-02-03 10:19:56 -06:00
oban.cancel_stuck_discovery.ex dialyzer: fix remaining 88 warnings — clean dialyzer run 2026-04-21 10:32:42 -05:00
populate_english.ex mikrotik api update 2026-02-02 10:35:44 -06:00
totp_diagnose.exs security fixes 2026-01-28 17:02:36 -06:00
totp_time_check.exs security fixes 2026-01-28 17:02:36 -06:00
upload_librenms.ex more tests 2026-01-20 16:38:53 -06:00
upload_mibs.ex handle mib uploading 2026-01-18 16:29:24 -06:00