Package: IdGenerator

IdGenerator

nameinstructionbranchcomplexitylinemethod
IdGenerator()
M: 5 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 3 C: 0
0%
M: 1 C: 0
0%
inc()
M: 8 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
reset()
M: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
value()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%

Coverage

1: package org.overture.codegen.runtime.traces;
2:
3: public class IdGenerator
4: {
5:         private int i;
6:
7:         public IdGenerator()
8:         {
9:                 reset();
10:         }
11:
12:         public void reset()
13:         {
14:                 i = 0;
15:         }
16:
17:         public int inc()
18:         {
19:                 return ++i;
20:         }
21:
22:         public int value()
23:         {
24:                 return i;
25:         }
26: }