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

Already on GitHub? Sign in to your account

Support for postfix conditionals and partial line executions #105

Closed
gioele opened this Issue Jan 22, 2012 · 1 comment

Comments

Projects
None yet
2 participants

gioele commented Jan 22, 2012

Code with postfix conditionals like

cond = false
a = 1 if cond
a ||= 2

will show up as 100% covered while it has been covered only partially (I'd say 75%). This is probably because the if cond part has been executed and that makes simplecov think that all the code on that line has been excuted.

Owner

colszowka commented Feb 22, 2012

SimpleCov relies on the Ruby STDLIB Coverage library, which is a C0 coverage utility. Check this blog post for a ruby-based explanation of the differences: http://dev-logger.blogspot.com/2008/06/c0-c1-and-c2-coverage.html

@colszowka colszowka closed this Feb 22, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment