Package: ObjectCopy

ObjectCopy

nameinstructionbranchcomplexitylinemethod
ObjectCopy(Object)
M: 11 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 4 C: 0
0%
M: 1 C: 0
0%
getValue()
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%
reset()
M: 8 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 3 C: 0
0%
M: 1 C: 0
0%

Coverage

1: package org.overture.codegen.runtime.traces;
2:
3: public class ObjectCopy extends ModuleCopy
4: {
5:         private Object instance;
6:         protected Object val;
7:
8:         public ObjectCopy(Object orig)
9:         {
10:                 super(orig.getClass());
11:
12:                 // Copy instance
13:                 this.instance = deepCopy(orig);
14:                 reset();
15:         }
16:
17:         @Override
18:         public void reset()
19:         {
20:                 super.reset();
21:                 val = deepCopy(instance);
22:         }
23:
24:         @Override
25:         public Object getValue()
26:         {
27:                 return val;
28:         }
29: }