How to read the stats
José Cornado
jose.cornado at gmail.com
Fri May 6 03:23:14 UTC 2016
Hello, again!
I moved along in the work that I am doing I ran into the following:
The stats show 100% coverage of methods, blocks lines but the branch
coverage is one less than 100%.
The method in question is:
int retR(int i){
int r = i + 2;
switch(r){
case 0:
r = i;
break;
case 1:
r = i + 2;
break;
case 2:
r = i + 3;
break;
case 3:
r = i + 4;
break;
case 4:
r = i + 5;
break;
case 5:
r = i + 6;
break;
case 6:
r = i + 7;
break;
case 7:
r = i + 8;
break;
case 8:
r = i + 9;
break;
case 9:
r = i + 10;
break;
}
return r;
}
What am I missing? What should I look for in the instrumented class and
templates that indicates that something is a branch?
How should I read this? a branch with no block or statements didn't get hit?
Just straight 2.0 and 1.8 74 jvm
Thanks again!
--
José Cornado
--
home: http://www.efekctive.com
blog: http://blogging.efekctive.com
----------------------
Everything has been said before, but since nobody listens we have to keep
going back and beginning all over again.
Andre Gide
More information about the jcov-dev
mailing list