towerops/test/towerops_web/controllers/api/v1
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
..
activity_controller_test.exs test: add on-call, incident, and PagerDuty notification test coverage 2026-03-14 15:10:27 -05:00
agent_release_webhook_controller_test.exs tests: raise coverage to 70% via helper promotion + new unit/property tests 2026-04-24 09:49:06 -05:00
agents_controller_test.exs add missing REST API controller tests 2026-03-11 14:43:17 -05:00
alerts_controller_test.exs refactor/dry-improvements (#202) 2026-03-28 10:56:34 -05:00
check_results_controller_test.exs add auto ICMP ping check for all devices (#68) 2026-03-17 17:55:23 -05:00
checks_controller_test.exs add service checks REST API, GraphQL API, and ping executor (#52) 2026-03-16 18:40:18 -05:00
devices_controller_test.exs fix: allow site_id on device create regardless of use_sites setting 2026-02-15 12:28:06 -06:00
escalation_policies_controller_test.exs feat: add REST API and GraphQL for on-call schedules and escalation policies 2026-03-11 14:01:15 -05:00
gaiia_webhook_controller_test.exs Fix tests, credo issues, and Gaiia sync bugs 2026-02-15 11:55:49 -06:00
geoip_controller_test.exs feat: add Force10 FTOS and optical transceiver monitoring (ProCurve, Comware) 2026-02-12 08:19:12 -06:00
integrations_controller_test.exs add missing REST API controller tests 2026-03-11 14:43:17 -05:00
invitations_controller_test.exs add missing REST API controller tests 2026-03-11 14:43:17 -05:00
maintenance_windows_controller_test.exs add maintenance windows REST API and GraphQL support 2026-03-11 14:33:25 -05:00
members_controller_test.exs add missing REST API controller tests 2026-03-11 14:43:17 -05:00
mib_controller_test.exs feat: add Force10 FTOS and optical transceiver monitoring (ProCurve, Comware) 2026-02-12 08:19:12 -06:00
organization_controller_test.exs add missing REST API controller tests 2026-03-11 14:43:17 -05:00
pagerduty_webhook_controller_test.exs refactor/dry-improvements (#202) 2026-03-28 10:56:34 -05:00
schedules_controller_test.exs feat: add REST API and GraphQL for on-call schedules and escalation policies 2026-03-11 14:01:15 -05:00
sites_controller_test.exs feat: add critical network switch sensor support (HP Comware, Dell PowerConnect, Dell SONiC) 2026-02-11 17:36:45 -06:00
stripe_webhook_controller_test.exs stripe and email after signup 2026-03-06 10:07:27 -06:00