Skip to content

Commit

Permalink
Fix test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
cabol committed Feb 24, 2024
1 parent 18b4d26 commit 230f3b9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ jobs:
- elixir: 1.16.x
otp: 26.x
os: 'ubuntu-latest'
- elixir: 1.15.x
otp: 26.x
os: 'ubuntu-latest'
style: true
coverage: true
sobelow: true
dialyzer: true
doctor: true
- elixir: 1.15.x
otp: 26.x
os: 'ubuntu-latest'
- elixir: 1.14.x
otp: 25.x
os: 'ubuntu-latest'
Expand Down
15 changes: 5 additions & 10 deletions lib/nebulex/caching/decorators.ex
Original file line number Diff line number Diff line change
Expand Up @@ -886,16 +886,11 @@ if Code.ensure_loaded?(Decorator.Define) do
walk(ast, acc)
end

defp walk({var, _meta, context} = ast, acc) when is_atom(context) and is_atom(var) do
cond do
match?("_" <> _, "#{var}") ->
acc

Macro.special_form?(var, 0) ->
acc

true ->
[ast | acc]
defp walk({var, _meta, context} = ast, acc) when is_atom(var) and is_atom(context) do
if match?("_" <> _, "#{var}") or Macro.special_form?(var, 0) do
acc
else
[ast | acc]
end
end

Expand Down

0 comments on commit 230f3b9

Please sign in to comment.