Hi,

short answer: JaCoCo does not provide this information.

JaCoCo is fully based on Java class files (bytecode). The only mapping back to source are the line numbers contained with the debug information. Within a line we cannot differentiate what exactly has been executed.

In OpenJDK there is a experimental flag which provides more fine-grain mapping. We created a POC using this extra information:

  https://github.com/jacoco/jacoco/pull/317

As a workaround you might break complex conditions in multiple lines.

Regards,
-marc


On 2017-11-14 09:19, [email protected] wrote:
Hello.

I found that if a branch was missed, only a yellow bolck was be shown
and said "1 of 2 branches missed." or other words like this.

However, could we know some details about it? Such as "1 of 4 branches
missed. True/False/True/True"?

In other words, is there any possiblity to konw which side of the
branch have been executed?

Thanks!

--
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jacoco/7056b1568c1f62336375458442a4b5b6%40mountainminds.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to