Package: CsvResult

CsvResult

nameinstructionbranchcomplexitylinemethod
CsvResult(List)
M: 0 C: 5
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 2
100%
M: 0 C: 1
100%
CsvResult(List, String)
M: 0 C: 9
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 4
100%
M: 0 C: 1
100%
dataOk()
M: 1 C: 6
86%
M: 1 C: 1
50%
M: 1 C: 1
50%
M: 0 C: 1
100%
M: 0 C: 1
100%
getErrorMsg()
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getValues()
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%

Coverage

1: package org.overture.interpreter.utilities.stdlibs;
2:
3: import java.util.List;
4:
5: import org.overture.interpreter.values.Value;
6:
7: public class CsvResult
8: {
9:         private List<Value> values;
10:         private String errorMsg;
11:         
12:         public CsvResult(List<Value> values)
13:         {
14:                 this(values, null);
15:         }
16:         
17:         public CsvResult(List<Value> values, String errorMsg)
18:         {
19:                 this.values = values;
20:                 this.errorMsg = errorMsg;
21:         }
22:         
23:         public List<Value> getValues()
24:         {
25:                 return values;
26:         }
27:         public boolean dataOk()
28:         {
29:•                return errorMsg == null;
30:         }
31:         
32:         public String getErrorMsg()
33:         {
34:                 return errorMsg;
35:         }
36: }