Created
November 23, 2021 00:34
-
-
Save ihumanable/04da2e16597faa6559fd3452c19312d4 to your computer and use it in GitHub Desktop.
Patch Example
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
test "something" do | |
patch(ModuleA, :function_a, :ok) | |
patch(ModuleA, :function_b, fn arg -> {:ok, arg} end) | |
patch(ModuleB, :function_c, false) | |
patch(ModuleB, :function_d, true) | |
assert Something.here() | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment