aprs.me/test/aprsme
Graham McIntire 1e32ce7051
Improve test coverage to 87% and point vendor/aprs submodule at codeberg
Coverage:
- Adds focused tests across 13 files covering previously-uncovered
  branches: Packet changeset normalisation (course, wind_direction,
  struct data_extended); Packets store_packet edge cases (nested
  position shapes, ssid handling, string-keyed raw_packet);
  DeviceIdentification HTTP success/404 via Req plug stub; ResendAdapter
  catch-all body, deliver_many, nil/binary formatters; ApiDocsLive
  packets with missing fields; AprsSymbol normalize helpers;
  BadPacketsLive refresh and postgres_notify; MobileChannel handle_info
  catch-all and postgres_packet path; PacketProcessor existing-marker
  movement detection; PacketReplay sanitize_value type clauses;
  InsertOptimizer GenServer lifecycle and negative-duration metric;
  PageController shutdown-handler integration; UrlParams delegated
  helpers.
- mix.exs: configure test_coverage with summary threshold of 87 and
  ignore_modules for test fixtures and macro-only template modules.

Bug fix:
- MapLive.Index handle_info: add a clause for the raw {:new_deployment,
  _} tuple. Phoenix.PubSub.broadcast delivers the raw payload to plain
  subscribers, but the existing handler only matched the %Broadcast{}
  fast-lane wrapper. DeploymentNotifier broadcasts via the raw path,
  which crashed the LiveView under test concurrency.

Submodule:
- Update .gitmodules vendor/aprs URL from
  https://github.com/aprsme/aprs.git to
  ssh://git@codeberg.org/gmcintire/aprs.git.
2026-05-05 15:18:28 -05:00
..
accounts test: cover UserAuth, StatusLive handlers and UserNotifier 2026-04-23 16:40:47 -05:00
cluster faster tests 2026-04-24 19:00:24 -05:00
is test: Aprsme.Is active-socket branches via TCP loopback, IsSupervisor smoke 2026-04-24 08:03:19 -05:00
packets test: QueryBuilder recent_position_packets/callsign_history/weather_packets 2026-04-23 18:25:32 -05:00
performance Improve test coverage to 87% and point vendor/aprs submodule at codeberg 2026-05-05 15:18:28 -05:00
swoosh Improve test coverage to 87% and point vendor/aprs submodule at codeberg 2026-05-05 15:18:28 -05:00
telemetry test: DatabaseMetrics pool-not-registered path 2026-04-24 08:34:54 -05:00
workers test: AprsIsMock, DeviceIdentification, PacketCleanupWorker coverage 2026-04-23 18:13:02 -05:00
accounts_test.exs test: expand Accounts and PartitionManager coverage 2026-04-23 16:49:54 -05:00
application_test.exs test: Application module smoke test 2026-04-24 08:50:24 -05:00
bad_packet_test.exs refactor to use external parser 2025-06-24 14:22:09 -05:00
broadcast_task_supervisor_test.exs Fix code review findings: security, correctness, performance, dead code 2026-02-19 18:49:27 -06:00
cache_test.exs fix(cache): use case instead of rescue to handle :undefined table info; expand Cache tests 2026-04-23 17:31:56 -05:00
callsign_test.exs test: broaden unit & property-test coverage (61.8% → 64.7%) 2026-04-23 13:32:09 -05:00
circuit_breaker_test.exs Fix code review findings: security, correctness, performance, dead code 2026-02-19 18:49:27 -06:00
cleanup_scheduler_test.exs test: expand Is backpressure, PacketReplay, CleanupScheduler coverage 2026-04-23 17:56:07 -05:00
connection_monitor_test.exs fix: guard connection monitor stats lookup 2026-03-22 17:09:07 -05:00
connection_prevention_test.exs refactor to use external parser 2025-06-24 14:22:09 -05:00
convert_test.exs test: broaden unit & property-test coverage (61.8% → 64.7%) 2026-04-23 13:32:09 -05:00
data_extended_test.exs fix messaging name 2025-06-24 14:29:47 -05:00
db_optimizer_test.exs Fix APRS object name extraction for names with special characters 2026-02-19 18:41:37 -06:00
deployment_notifier_test.exs test: cover Aprsme.Is TCP data buffering and deployment init 2026-04-23 17:31:56 -05:00
device_cache_test.exs faster tests 2026-04-24 19:00:24 -05:00
device_identification_test.exs Improve test coverage to 87% and point vendor/aprs submodule at codeberg 2026-05-05 15:18:28 -05:00
device_parser_test.exs test: broaden unit & property-test coverage (61.8% → 64.7%) 2026-04-23 13:32:09 -05:00
dynamic_supervisor_test.exs Add tests for 14 modules with 0% coverage 2026-02-09 17:19:50 -06:00
encoding_test.exs Fix APRS object display and comment encoding issues 2026-02-20 18:06:32 -06:00
encoding_utils_test.exs Fix APRS object display and comment encoding issues 2026-02-20 18:06:32 -06:00
enhanced_parser_test.exs Consolidate 24 packet columns into JSONB data field 2026-02-20 13:02:47 -06:00
error_handler_test.exs Add tests for 14 modules with 0% coverage 2026-02-09 17:19:50 -06:00
error_notifier_test.exs Add email notifications for production errors 2026-03-22 15:12:59 -05:00
geo_utils_test.exs test: add StreamData properties for Aprsme.GeoUtils 2026-04-23 15:14:12 -05:00
geometry_test.exs fix: Resolve majority of dialyzer type errors 2025-07-30 13:30:21 -05:00
is_test.exs faster tests 2026-04-24 19:00:24 -05:00
log_sanitizer_test.exs test: broaden unit & property-test coverage (61.8% → 64.7%) 2026-04-23 13:32:09 -05:00
maidenhead_test.exs Partition packets table by day and simplify cleanup 2026-02-20 11:25:16 -06:00
migration_lock_test.exs Add tests for 14 modules with 0% coverage 2026-02-09 17:19:50 -06:00
mock_helpers_test.exs Add tests for 14 modules with 0% coverage 2026-02-09 17:19:50 -06:00
packet_consumer_pool_test.exs Fix API documentation to match implementation 2026-02-19 10:22:10 -06:00
packet_consumer_test.exs Remove AppSignal; fix decrement trigger and stale test assertions 2026-05-05 13:20:58 -05:00
packet_counter_test.exs Add tests for 14 modules with 0% coverage 2026-02-09 17:19:50 -06:00
packet_field_whitelist_test.exs test: broaden unit & property-test coverage (61.8% → 64.7%) 2026-04-23 13:32:09 -05:00
packet_geometry_test.exs Add test coverage for conversion, geometry, PHG, and encoding modules 2026-02-20 13:53:26 -06:00
packet_parsing_test.exs Consolidate 24 packet columns into JSONB data field 2026-02-20 13:02:47 -06:00
packet_pipeline_integration_test.exs Fix code review findings: security, correctness, performance, dead code 2026-02-19 18:49:27 -06:00
packet_pipeline_supervisor_test.exs Fix multiple TODO bugs: drain handler, callsign dedup, packet pipeline 2026-02-19 18:27:25 -06:00
packet_producer_backpressure_test.exs Add TCP backpressure to packet pipeline 2026-02-19 15:31:51 -06:00
packet_producer_test.exs Add TCP backpressure to packet pipeline 2026-02-19 15:31:51 -06:00
packet_replay_test.exs Improve test coverage to 87% and point vendor/aprs submodule at codeberg 2026-05-05 15:18:28 -05:00
packet_sanitizer_test.exs test: broaden unit & property-test coverage (61.8% → 64.7%) 2026-04-23 13:32:09 -05:00
packet_test.exs Improve test coverage to 87% and point vendor/aprs submodule at codeberg 2026-05-05 15:18:28 -05:00
packet_weather_extraction_test.exs integrate /:call to main page 2025-07-13 10:36:58 -05:00
packets_encoding_test.exs Consolidate 24 packet columns into JSONB data field 2026-02-20 13:02:47 -06:00
packets_mic_e_test.exs add packet batcher 2025-06-24 15:06:09 -05:00
packets_oldest_test.exs Remove AppSignal; fix decrement trigger and stale test assertions 2026-05-05 13:20:58 -05:00
packets_test.exs Improve test coverage to 87% and point vendor/aprs submodule at codeberg 2026-05-05 15:18:28 -05:00
packets_weather_test.exs fix geolocation hopefully 2025-07-10 17:12:49 -05:00
partition_manager_test.exs test: expand Accounts and PartitionManager coverage 2026-04-23 16:49:54 -05:00
postgres_notifier_test.exs test: push coverage to 70% with more CoreComponents and PostgresNotifier 2026-04-23 16:18:04 -05:00
regex_cache_test.exs test: RegexCache LRU eviction path (100% coverage) 2026-04-24 08:23:52 -05:00
release_test.exs test: broaden unit & property-test coverage (61.8% → 64.7%) 2026-04-23 13:32:09 -05:00
shutdown_handler_test.exs test: expand coverage on cluster, shutdown, signal, packets helpers 2026-04-24 09:38:27 -05:00
signal_handler_test.exs chore: remove unused deps, replace resend with custom Swoosh adapter, fix test isolation 2026-04-24 13:04:18 -05:00
spatial_pubsub_test.exs test: SpatialPubSub broadcast paths and client lifecycle 2026-04-24 08:23:04 -05:00
streaming_packets_pubsub_test.exs fix: harden mobile channel numeric params 2026-03-22 17:36:09 -05:00