Skip to content

Commit

Permalink
Even more
Browse files Browse the repository at this point in the history
  • Loading branch information
edgurgel committed Aug 18, 2024
1 parent 146875c commit 878fc9b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
1 change: 1 addition & 0 deletions test/ham_test.exs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
defmodule HamTest do
use ExUnit.Case, async: true
alias Ham.Test.CustomAccess
doctest Ham
require Ham

Expand Down
12 changes: 12 additions & 0 deletions test/support/custom_access.ex
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
defmodule Ham.Test.CustomAccess do
@behaviour Access

@impl Access
def fetch(_data, _key), do: :wrong
@impl Access
def get_and_update(_data, _key, _function), do: :wrong

@impl Access
@spec pop(any, any) :: :wrong
def pop(_data, _key), do: :wrong
end
13 changes: 0 additions & 13 deletions test/support/module.ex
Original file line number Diff line number Diff line change
Expand Up @@ -241,16 +241,3 @@ defmodule Ham.Test.TestModule do

def nospec_fun, do: :ok
end

defmodule CustomAccess do
@behaviour Access

@impl Access
def fetch(_data, _key), do: :wrong
@impl Access
def get_and_update(_data, _key, _function), do: :wrong

@impl Access
@spec pop(any, any) :: :wrong
def pop(_data, _key), do: :wrong
end

0 comments on commit 878fc9b

Please sign in to comment.