towerops/test/towerops/workers
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
..
agent_latency_evaluator_test.exs refactor/dry-improvements (#202) 2026-03-28 10:56:34 -05:00
alert_digest_worker_test.exs tests: raise coverage to 70% via helper promotion + new unit/property tests 2026-04-24 09:49:06 -05:00
alert_notification_worker_test.exs tests: raise coverage to 70% via helper promotion + new unit/property tests 2026-04-24 09:49:06 -05:00
backup_summary_worker_test.exs make devices site optional and many test fix 2026-02-04 15:05:42 -06:00
backup_timeout_worker_test.exs fix: add time buffer to backup timeout boundary test 2026-03-07 16:22:44 -06:00
billing_sync_worker_test.exs stripe and email after signup 2026-03-06 10:07:27 -06:00
capacity_insight_worker_test.exs feat: add capacity insight worker, UI, and reporting views 2026-03-07 14:42:40 -06:00
check_executor_worker_test.exs fix: dns and ping checks not executing in production (#71) 2026-03-18 08:43:37 -05:00
check_worker_state_test.exs tests: raise coverage to 70% via helper promotion + new unit/property tests 2026-04-24 09:49:06 -05:00
cloud_latency_probe_worker_test.exs refactor/dry-improvements (#202) 2026-03-28 10:56:34 -05:00
cloudflare_ban_worker_test.exs tests: raise coverage to 70% via helper promotion + new unit/property tests 2026-04-24 09:49:06 -05:00
data_retention_worker_test.exs refactor/dry-improvements (#202) 2026-03-28 10:56:34 -05:00
device_health_insight_worker_test.exs feat: command center dashboard with unified insights and contextual enrichment 2026-02-13 14:52:49 -06:00
device_monitor_worker_test.exs refactor: convert 6 Gleam modules to idiomatic Elixir with TDD (#196) 2026-03-28 09:52:07 -05:00
device_poller_transceiver_test.exs feature/entity-physical-inventory (#187) 2026-03-27 10:48:50 -05:00
device_poller_worker_helpers_test.exs tests: raise coverage to 70% via helper promotion + new unit/property tests 2026-04-24 09:49:06 -05:00
device_poller_worker_test.exs refactor: convert 6 Gleam modules to idiomatic Elixir with TDD (#196) 2026-03-28 09:52:07 -05:00
discovery_worker_test.exs feat: implement batched SNMP GET for multi-OID requests (#183) 2026-03-26 16:37:34 -05:00
escalation_check_worker_test.exs tests: raise coverage to 70% via helper promotion + new unit/property tests 2026-04-24 09:49:06 -05:00
expired_ban_cleanup_worker_test.exs test: add coverage for ExpiredBanCleanupWorker 2026-02-11 16:25:33 -06:00
firmware_version_fetcher_worker_test.exs fix: retry firmware fetch with exponential backoff on network errors 2026-02-18 10:34:51 -06:00
gaiia_insight_worker_test.exs feat: command center dashboard with unified insights and contextual enrichment 2026-02-13 14:52:49 -06:00
gaiia_sync_worker_test.exs fix: Gaiia and Preseem sync bugs from API response mismatches 2026-02-15 12:23:47 -06:00
job_health_check_worker_test.exs fix: dns and ping checks not executing in production (#71) 2026-03-18 08:43:37 -05:00
login_history_cleanup_worker_test.exs fix: add time buffer to login history boundary test 2026-03-07 16:22:02 -06:00
mikrotik_backup_worker_test.exs tests: raise coverage to 70% via helper promotion + new unit/property tests 2026-04-24 09:49:06 -05:00
polling_offset_test.exs tests: raise coverage to 70% via helper promotion + new unit/property tests 2026-04-24 09:49:06 -05:00
preseem_baseline_worker_test.exs add preseem baseline and fleet intelligence computation 2026-02-13 08:40:04 -06:00
preseem_sync_worker_test.exs refactor/dry-improvements (#202) 2026-03-28 10:56:34 -05:00
report_worker_test.exs tests: raise coverage to 70% via helper promotion + new unit/property tests 2026-04-24 09:49:06 -05:00
session_cleanup_worker_test.exs Rewrite polling_offset, changelog_parser, and user_agent_parser in Gleam (#103) 2026-03-21 10:11:06 -05:00
stale_agent_worker_test.exs more tests 2026-02-03 12:03:54 -06:00
stale_violation_cleanup_worker_test.exs feat: add Force10 FTOS and optical transceiver monitoring (ProCurve, Comware) 2026-02-12 08:19:12 -06:00
sync_worker_should_sync_test.exs tests: raise coverage to 70% via helper promotion + new unit/property tests 2026-04-24 09:49:06 -05:00
sync_workers_test.exs tests: raise coverage to 70% via helper promotion + new unit/property tests 2026-04-24 09:49:06 -05:00
system_insight_worker_test.exs fix: improve insight auto-resolution and query performance 2026-03-05 10:11:52 -06:00
welcome_email_worker_test.exs stripe and email after signup 2026-03-06 10:07:27 -06:00
wireless_insight_worker_test.exs feat: add comprehensive wireless client tracking and monitoring 2026-03-10 09:57:12 -05:00