Should module attributes reset after every function definition or does ExUnit reset @tag
with macros?
Would I need @doc false
for second/0
if I had a @doc for first/0
and third/0
?
defmodule MyApp do
@tag 0
@tag 1
def first() do
@tag |> IO.inspect() # prints 1
end
def second() do
@tag |> IO.inspect() # prints 1
end
@tag 3
def third() do
@tag |> IO.inspect() # prints 3
end
end