CTC++ Coverage Report- Execution Profile#1/3

Directory Summary | Files Summary | Functions Summary | Untested Code | Execution Profile
To files: First | Previous | Next | Last | Index | No Index


Source file:/home/roland/java/Calc.java
Instrumentation mode:multicondition
TER:82 % (14/17) structural,91 % (10/11) statement

Hits/TrueFalseLineSource
1public class Calc
2{
3
Top
94   public static boolean isPrime(int value)
5   {
6    int divisor;
7
278    if (value == 1 || value == 2 || value == 3)
18    1: T || _ || _
08    2: F || T || _
18    3: F || F || T
78    4: F || F || F
29        return true;
10    
5211    if (value % 2 == 0)
512        return false;
58213    for (divisor = 3; divisor < value / 2; divisor += 2)
14    {
05815        if (value % divisor == 0)
016            return false;
17    }
218    return true;
19   }
20
21}
22
***TER82 % (14/17) of FILE Calc.java
91 % (10/11) statement

Directory Summary | Files Summary | Functions Summary | Untested Code | Execution Profile
To files: First | Previous | Next | Last | Top | Index | No Index