Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
omus and github-actions[bot] authored Jul 23, 2024
1 parent e27d669 commit 599af55
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/targets.jl
Original file line number Diff line number Diff line change
Expand Up @@ -107,19 +107,19 @@ end
patch = @patch f(::Int) = "patched"
apply(patch) do
# Call patched function
@test_logs min_level=Debug (:debug, r"Patch called") begin
@test_logs min_level = Debug (:debug, r"Patch called") begin
@test (@mock f(1)) == "patched"
end

# Call original function
@test_logs min_level=Debug (:debug, r"No patch handles provided arguments") begin
@test_logs min_level = Debug (:debug, r"No patch handles provided arguments") begin
@test (@mock f(1.0)) == "original"
end
end

# Call unpatched function
apply([]) do
@test_logs min_level=Debug (:debug, r"No patch defined for target function") begin
@test_logs min_level = Debug (:debug, r"No patch defined for target function") begin
@test (@mock f(1)) == "original"
end
end
Expand Down

0 comments on commit 599af55

Please sign in to comment.