Let's consider the following classes, all with different ids:

org/example/Example.class - 5/12 Instructions covered
org/example/Example.class - 6/14 Instructions covered
org/example/Example$1.class - 0/3 Instructions covered
org/example/Example$1.class - 2/2 Instructions covered

All of them refer to "Example.java" as the corresponding source file. So, now here are the questions:

1) What is the total number and the covered number of instructions of package org.example?
2) How do would you calculate line coverage for the file "Example.java"?

Best regards,
-marc

On 17.10.14 16:50, [email protected] wrote:
Hi Marc,

Thanks a lot for replying so nice.
But  I'm confused more after reading your answer.

As I know, different version of the same class has different class id and same class 
name. So  if we want prevent that "If we would combine mutliple versions of the same 
class into the same source, counters in a particular line might double", we should 
use class id nor class name, because there are multiple datas of the same class with 
multiple versions in the ExecutionData, and the class file used to generate report is a 
version of the class, so which version report we want could determine by the class file 
we using.


--
You received this message because you are subscribed to the Google Groups "JaCoCo 
and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to