Hi Marc,

   Thanks for the response, I am trying to figure out if the Source lines
are really the most atomic components, or if parts of a line will
eventually be the atomic parts!

I was trying to map instructions back to the source code a more readable
level since now a line seems to be the atomic component as they are simply
flagged as ICounter.FULLY_COVERED, ICounter.NOT_COVERED or ICounter.
PARTLY_COVERED.

Perhaps a new class in the api

ILine   1:N    IInstructionSet

where InstructionSet would have;
int instructions
int startChar
int endChar

This would allow us to highlight part of line 8 in the following;

1package foo;

2public class Foo {

3   public Foo() {

4       long now = System.currentTimeMillis();

5       double ret = Math.IEEEremainder(now, 2);

6       long then = System.currentTimeMillis();

7       double retThen = Math.IEEEremainder(then, 2);

8       if (ret == 0.0 && retThen == 0.0) {

9       System.out.println("Hey");

10      }

11   }

12}


ie;

ILine#8_instructionSet#1 2 instructions '       if (ret == 0.0 '

ILine#8_instructionSet#2 1 instructions ' &&'

ILine#8_instructionSet#2 1 instructions ' retThen == 0.0) { '

ILine#9_instructionSet#1 7 instructions '        System.out.println("Hey");'


So what are your thoughts is the current line mapping going to stay, or
will parts of a line eventually become part of the jacoco api?


Cheers,

Scott

-- 
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