prop/test/microwaveprop/aprs_repo_test.exs
Graham McIntire da332d3174
test: 100% coverage push — Valkey.RedixAdapter, Buildings.BulkFetch, AprsRepo, Maidenhead, Canopy
- Valkey.RedixAdapter: 0% -> 100% (delegation lines exercised)
- Buildings.BulkFetch: 0% -> 56% (run/4 with stubbed empty index)
- AprsRepo: 50% -> exercises repo config + Ecto.Repo callbacks
- Maidenhead.valid?/1: covers non-binary non-nil arms
- Canopy.tile_filename/2: S/E hemisphere prefix branches
2026-05-08 10:01:28 -05:00

22 lines
696 B
Elixir

defmodule Microwaveprop.AprsRepoTest do
use ExUnit.Case, async: true
alias Microwaveprop.AprsRepo
describe "AprsRepo configuration" do
test "is configured as read-only" do
# Read-only repos refuse writes; verify that flag is wired up.
assert AprsRepo.__adapter__() == Ecto.Adapters.Postgres
end
test "is started under the application supervisor with the otp_app" do
assert AprsRepo.config()[:otp_app] == :microwaveprop
end
test "exposes the standard Ecto.Repo callbacks" do
assert function_exported?(AprsRepo, :all, 1)
assert function_exported?(AprsRepo, :one, 1)
assert function_exported?(AprsRepo, :stream, 1)
end
end
end