I have the following code :
package my;
import java.util.Scanner;
public class greatest {
public static void findGreat(int a,int b,int c)
{
if(a>c)
System.out.println(a+" is greatest");
else
System.out.println(c+" is greatest");
if(b>c)
System.out.println(b+" is greatest");
else
System.out.println(c+ " is greatest");
}
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner my = new Scanner(System.in);
int a = Integer.parseInt(args[0]);
int b = Integer.parseInt(args[1]);
int c = Integer.parseInt(args[2]);
findGreat(a,b,c);
}
}
The* McCabe complexity* for this is *3*, which is correctly reported by the
tool.
However running JaCoCo for just two of the following arguments:
my.greatest 4 2 3 (TF)
my.greatest 1 3 2 (FT)
gives *missed complexity* as* 0*.
Should it not report 1 as missed complexity as it still missed one of the*
Linearly Independent Paths*?
Thanks and regards,
Rohan
--
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/9c588e6f-6ec8-4a6a-9071-d324ad1319ad%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.