aprs.me/test/aprsme_web
Graham McIntire 564d21bb26
refactor: pattern-match in TimeHelpers.to_datetime and PageController
- TimeHelpers.to_datetime: `cond` with match?/2 guards becomes five
  function heads dispatched by input type — DateTime passes through,
  NaiveDateTime anchors to UTC, integer is a millisecond Unix epoch,
  binary tries ISO 8601, everything else is nil.
- PageController.health: the three-branch `cond` + inner `if db_healthy`
  becomes a chain of small respond_* helpers, each pattern-matched on a
  single axis (health_status, shutting_down?, db_healthy?). db_healthy?/0
  isolates the rescue.
- format_uptime splits the cond into four format_uptime_parts/4 clauses.

Adds tests for the PageController actions (health 200 / 503-draining,
ready, sitemap.xml, .well-known/api-catalog, status.json). Coverage
66.81 → 67.29%.
2026-04-23 13:58:42 -05:00
..
channels refactor: pattern-match in DeviceCache and DatabaseMetrics + add tests 2026-04-23 13:46:00 -05:00
controllers refactor: pattern-match in TimeHelpers.to_datetime and PageController 2026-04-23 13:58:42 -05:00
integration Fix duplicate ID errors and optimize mobile callsign search 2025-10-25 13:39:34 -05:00
live refactor: collapse nested if/case into pattern-matched helpers 2026-04-23 13:55:11 -05:00
plugs test: broaden unit & property-test coverage (61.8% → 64.7%) 2026-04-23 13:32:09 -05:00
aprs_symbol_test.exs format 2025-07-09 16:22:58 -05:00
time_helpers_test.exs updates with parser updates 2025-08-03 09:19:31 -05:00
time_utils_test.exs test: broaden unit & property-test coverage (61.8% → 64.7%) 2026-04-23 13:32:09 -05:00
weather_units_test.exs test: broaden unit & property-test coverage (61.8% → 64.7%) 2026-04-23 13:32:09 -05:00