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

Lines in a case statement are treated as irrelevant #49

Open
campezzi opened this issue Apr 13, 2016 · 1 comment
Open

Lines in a case statement are treated as irrelevant #49

campezzi opened this issue Apr 13, 2016 · 1 comment

Comments

@campezzi
Copy link
Contributor

This may not be ExCoveralls-specific, but it seems lines inside a case statement are not counted as relevant. This means coverage reports may return 100% coverage even when one of the branches of that case are not exercised.

I put up a sample repository demonstrating the issue (with instructions on the README file): https://github.com/campezzi/coverage_fail_demo

@parroty
Copy link
Owner

parroty commented Apr 16, 2016

Thanks for the report. I could confirmed the same behavior (with both excoveralls and cover).
The line (just the value reference) seems not taken as relevant, and it might need some treatment at elixir/cover side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants