public abstract class CUTUtil extends Object
CUTUtil class
Useful to get data (total, averages, etc) from aCUT instance.| Constructor and Description |
|---|
CUTUtil() |
| Modifier and Type | Method and Description |
|---|---|
static Set<String> |
getCriteria(CUT cut)
Returns all criteria used on the latest successful generation
|
static double |
getCriterionCoverage(CUT cut,
String criterionName)
Returns the coverage of a particular criterion of the latest successful generation
|
static Generation |
getLatestGeneration(CUT cut)
Returns the latest test generation
|
static Generation |
getLatestSuccessfulGeneration(CUT cut)
Returns the latest successful test generation
|
static int |
getNumberStatements(CUT cut)
Returns the total length (i.e., number of statements) of the latest successful generation
|
static int |
getNumberTests(CUT cut)
Returns the total number of generated tests of the latest successful generation
|
static double |
getOverallCoverage(CUT cut)
Returns the overall coverage of the latest successful generation
|
static int |
getTimeBudget(CUT cut)
Returns the total time (minutes) settled by the scheduler on the latest generation
|
static int |
getTimeBudget(CUT cut,
int generationID)
Returns the total time (minutes) settled by the scheduler on a generation with an ID equal to
generationID
|
static int |
getTotalEffort(CUT cut)
Returns the total time (minutes) spent on the latest generation
|
static int |
getTotalEffort(CUT cut,
int generationID)
Returns the total time (minutes) spent on a generation with an ID equal to generationID
|
public static int getNumberStatements(CUT cut)
cut - CUTpublic static int getTotalEffort(CUT cut)
cut - public static int getTimeBudget(CUT cut)
cut - public static int getTotalEffort(CUT cut,
int generationID)
cut - generationID - public static int getTimeBudget(CUT cut,
int generationID)
cut - generationID - public static int getNumberTests(CUT cut)
cut - CUTpublic static Set<String> getCriteria(CUT cut)
cut - CUTpublic static double getCriterionCoverage(CUT cut,
String criterionName)
cut - criterionName - CUTpublic static double getOverallCoverage(CUT cut)
cut - CUTpublic static Generation getLatestGeneration(CUT cut)
cut - public static Generation getLatestSuccessfulGeneration(CUT cut)
cut - CUTCopyright © 2010–2016 EvoSuite. All rights reserved.