- Create Microwaveprop.Valkey.Adapter behaviour with command/3 + pipeline/3 - Create Microwaveprop.Valkey.RedixAdapter as the production impl - Inject adapter via Application config; mock with Mox in tests - Cover all Valkey operations: get, mget, set, mset_with_ttl, zadd, zrevrange, zrangebyscore, zrem, del, scan_match (multi-cursor) - Full round-trip tests for encode/decode, error paths, edge cases Coverage: 78.93% → 79.07%
7 lines
253 B
Elixir
7 lines
253 B
Elixir
alias Ecto.Adapters.SQL.Sandbox
|
|
|
|
ExUnit.start(exclude: [:slow], capture_log: true)
|
|
Sandbox.mode(Microwaveprop.Repo, :manual)
|
|
Sandbox.mode(Microwaveprop.AprsRepo, :manual)
|
|
|
|
Mox.defmock(Microwaveprop.Valkey.MockAdapter, for: Microwaveprop.Valkey.Adapter)
|