-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
14 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters