Emma - Block Coverage vs Line Coverage

Posted by MasterGaurav on Stack Overflow See other posts from Stack Overflow or by MasterGaurav
Published on 2010-05-20T16:07:03Z Indexed on 2010/05/20 16:10 UTC
Read the original article Hit count: 415

Filed under:
|
|
|

I have a strange scenario... while doing a EMMA coverage for UT, I get the total block coverage size more than line coverage size.

For block coverage, the total size is some 50,000 while the line coverage is out of 18,000.

I get (block-coverage-value) / 50,000 and (line-coverage-value) / 18,000 in the report.

Is it possible? How can the number of blocks be more than the number of lines in code?

btw, you can assume that I know what Block Coverage is: http://emma.sourceforge.net/faq.html#q.blockcoverage

© Stack Overflow or respective owner

Related posts about emma

Related posts about unit