chronoscope/test/support/behaviours.ex

25 lines
804 B
Elixir
Raw Normal View History

2024-04-19 11:34:37 -04:00
defmodule Chronoscope.DateTime.Behaviour do
@callback utc_now :: DateTime.t()
end
defmodule Chronoscope.SSL.Behaviour do
@callback connect(any(), any(), any(), any()) :: {:ok, any()} | {:error, any()}
@callback send(any(), any()) :: :ok | {:error, any()}
@callback peercert(any()) :: {:ok, any()} | {:error, any()}
@callback close(any()) :: :ok | {:error, any()}
end
defmodule Chronoscope.Registry.Behaviour do
@callback lookup(atom(), any()) :: [{pid(), any()}]
end
defmodule Chronoscope.DynamicSupervisor.Behaviour do
@callback start_child(Supervisor.supervisor(), any()) :: any()
@callback which_children(Supervisor.supervisor()) :: [any()]
end
defmodule Chronoscope.GenServer.Behaviour do
2024-06-04 20:03:02 -04:00
@callback call(pid(), any(), any()) :: any()
2024-04-19 11:34:37 -04:00
@callback call(pid(), any()) :: any()
end