public class CsvJUnitData extends Object
Note: as this class is used only for CTG, it assumes the CSV contains only one single data row.
| Modifier | Constructor and Description |
|---|---|
protected |
CsvJUnitData()
Apart from testing, shouldn't be allowed to instantiate
this class directly
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConfigurationId() |
double |
getCoverage(String coverageVariable) |
String |
getCoverageBitString(String coverageVariable) |
Set<String> |
getCoverageBitStringVariables() |
Set<String> |
getCoverageVariables() |
int |
getDurationInSeconds() |
int |
getNumberOfCoverageValues() |
int |
getNumberOfTests() |
String |
getTargetClass() |
int |
getTotalNumberOfFailures() |
int |
getTotalNumberOfStatements() |
static String |
getValue(List<String[]> rows,
String columnName) |
static List<String> |
getValues(List<String[]> rows,
String columnName) |
boolean |
hasCoverage(String coverageVariable) |
static CsvJUnitData |
openFile(File file)
Open and extract all data from the given csv file.
|
protected CsvJUnitData()
public static CsvJUnitData openFile(File file)
file - the csv file, having 1 line of header, and 1 line of datanull in case of any problem in reading the filepublic String getTargetClass()
public double getCoverage(String coverageVariable)
public boolean hasCoverage(String coverageVariable)
public int getNumberOfCoverageValues()
public int getTotalNumberOfStatements()
public int getNumberOfTests()
public int getTotalNumberOfFailures()
public int getDurationInSeconds()
public int getConfigurationId()
Copyright © 2010–2016 EvoSuite. All rights reserved.