Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return a tuple it's not consider as line to cover #146

Open
vigohe opened this issue Jun 23, 2018 · 2 comments
Open

Return a tuple it's not consider as line to cover #146

vigohe opened this issue Jun 23, 2018 · 2 comments

Comments

@vigohe
Copy link

@vigohe vigohe commented Jun 23, 2018

Return a tuple it's not consider as line to cover

example:

defp my_func( %{} = x) do
  {:error, "error msg"} # Not consider as line to cover
end
@scouten

This comment has been minimized.

Copy link
Contributor

@scouten scouten commented Aug 26, 2019

Yes, I see this as well. Also seems to apply to other literal types as well (lists, binaries, and booleans).

@scouten

This comment has been minimized.

Copy link
Contributor

@scouten scouten commented Sep 3, 2019

Some discussion about this topic at Elixir Forum. I suspect this is an issue at the compiler level.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.