From f6e2e9e4a85af38f7fb3da17e199ef45066139b0 Mon Sep 17 00:00:00 2001 From: Fly Dev Date: Mon, 23 Jun 2025 14:16:32 +0000 Subject: [PATCH] create Packets behaviour for testing --- lib/aprs/packets_behaviour.ex | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/aprs/packets_behaviour.ex b/lib/aprs/packets_behaviour.ex index b62ce42..500c718 100644 --- a/lib/aprs/packets_behaviour.ex +++ b/lib/aprs/packets_behaviour.ex @@ -1,13 +1,8 @@ defmodule Aprs.PacketsBehaviour do @moduledoc """ - Behavior definition for the Packets context. - This allows us to mock the Packets module in tests. + Behaviour for Packets module to allow mocking in tests """ - @callback get_packets_for_replay(map()) :: [Aprs.Packet.t()] - @callback get_recent_packets(map()) :: [Aprs.Packet.t()] @callback get_historical_packet_count(map()) :: non_neg_integer() @callback stream_packets_for_replay(map()) :: Enumerable.t() - @callback clean_old_packets() :: non_neg_integer() - @callback clean_packets_older_than(pos_integer()) :: non_neg_integer() end