What does the yellow jacoco line mean

I am trying to measure code coverage using jacoco, but I do not understand the meaning of the yellow lines. The document states that this condition is not fully covered. But see the snapshot of the coverage that I received - it’s obvious that the condition hit, because the next line is green, so why is the condition marked in yellow?

screen-shot

Also, if you can point to a short link to all coverage elements that jacoco can show (besides line coverage) that will help a lot.

+7
java jacoco
source share
1 answer

Take a look here: http://www.eclemma.org/jacoco/trunk/doc/counters.html :

Partial Coverage: Only part of the command in a line is executed

To enable green, the condition must be met twice, one with false and one with true result. Probably your args.equals("0") always right.

+6
source share

All Articles