sota.ast.util
Class TestCase
java.lang.Object
sota.ast.util.TestCase
- All Implemented Interfaces:
- java.lang.Comparable<TestCase>, ITestContainer
public class TestCase
- extends java.lang.Object
- implements ITestContainer, java.lang.Comparable<TestCase>
Enthält alle Informationen zu einem Test. Das umfasst die Pfadinformationen, die aus der Logdatei gelesen wurden, und
die daraus aufbereiteten Information zur Applikation auf den AST.
Field Summary |
private int |
checkSum
|
private java.lang.String |
description
|
private java.lang.String |
fileName
|
private java.util.HashMap<java.lang.Integer,java.lang.Integer> |
hitMap
|
(package private) java.util.HashMap<java.lang.Integer,int[]> |
invokationMap
|
private java.lang.String |
iSchemeName
|
private boolean |
isCompleted
|
private java.util.HashMap<java.lang.Integer,java.lang.Integer> |
iterationDoubleLoopsMap
|
private java.util.HashMap<java.lang.Integer,java.lang.Integer> |
iterationSingleLoopsMap
|
private java.util.HashMap<java.lang.Integer,java.lang.Integer> |
iterationSkipsMap
|
private java.util.ArrayList<java.util.ArrayList<java.lang.Integer>> |
listOfPaths
|
private java.util.HashMap<java.lang.Integer,java.util.HashSet<java.lang.Long>> |
mapOfCoveredBIPaths
|
private java.util.HashMap<java.lang.Integer,java.util.HashSet<java.lang.Long>> |
mapOfCoveredModBIPaths
|
private java.lang.String |
name
|
private int |
number
|
private java.lang.String |
projectName
|
private java.util.HashMap<java.lang.Integer,java.lang.Integer> |
selectionMap
|
private java.util.HashMap<java.lang.Integer,java.lang.Integer> |
tryWithoutCatchMap
|
private java.util.HashMap<java.lang.Integer,java.util.TreeSet<java.lang.String>> |
tvMap
|
Constructor Summary |
TestCase(int number,
java.lang.String fileName,
java.lang.String projectName,
java.lang.String testName,
java.lang.String description,
java.lang.String iScheme)
|
Method Summary |
void |
addCoveredBIPath(int functionID,
long biPath)
|
void |
addCoveredModBIPath(int id,
long modBIPath)
|
void |
addHitMap(java.util.HashMap<java.lang.Integer,java.lang.Integer> newHitMap)
|
void |
addIterationDoubleLoop(int id,
int nrDoubleLoops)
|
void |
addIterationLoopsMap(java.util.HashMap<java.lang.Integer,java.lang.Integer> iterationLoopsMap)
|
void |
addIterationSingleLoop(int id,
int nrSingleLoops)
|
void |
addIterationSkip(int id,
int nrSkips)
|
void |
addIterationSkipsMap(java.util.HashMap<java.lang.Integer,java.lang.Integer> map)
|
void |
addListOfPaths(java.util.ArrayList<java.util.ArrayList<java.lang.Integer>> pathList)
|
void |
addSelection(int id,
int nrSelects)
|
void |
addTruthVector(int id,
java.lang.String tv)
|
void |
addTryWithoutException(int id,
int nr)
|
int |
compareTo(TestCase arg0)
|
void |
computeInvokationMap()
|
int |
getCheckSum()
|
java.lang.String |
getDescription()
|
java.lang.String |
getFileName()
|
java.util.HashMap<java.lang.Integer,java.lang.Integer> |
getHitMap()
|
java.util.HashMap<java.lang.Integer,int[]> |
getInvokationMap()
|
java.lang.String |
getISchemeName()
|
java.util.HashMap<java.lang.Integer,java.lang.Integer> |
getIterationDoubleLoopsMap()
|
java.util.HashMap<java.lang.Integer,java.lang.Integer> |
getIterationSingleLoopsMap()
|
java.util.HashMap<java.lang.Integer,java.lang.Integer> |
getIterationSkipsMap()
|
java.util.ArrayList<java.util.ArrayList<java.lang.Integer>> |
getListOfPaths()
|
java.util.HashMap<java.lang.Integer,java.util.HashSet<java.lang.Long>> |
getMapOfCoveredBIPaths()
|
java.util.HashMap<java.lang.Integer,java.util.HashSet<java.lang.Long>> |
getMapOfCoveredModBIPaths()
|
java.lang.String |
getName()
|
int |
getNrOfPaths()
|
int |
getNumber()
|
static java.lang.String |
getPathString(java.util.ArrayList<java.lang.Integer> list)
|
static java.lang.String |
getPathString(java.util.HashSet<java.lang.Long> hashSet)
|
java.lang.String |
getProjectName()
|
int |
getSelection(int id)
|
java.util.HashMap<java.lang.Integer,java.lang.Integer> |
getSelectionMap()
|
java.util.HashMap<java.lang.Integer,java.lang.Integer> |
getTryWithoutExceptionMap()
|
java.util.HashMap<java.lang.Integer,java.util.TreeSet<java.lang.String>> |
getTvMap()
|
boolean |
isCompleted()
|
void |
print()
|
void |
printHitMap()
|
static void |
printPath(java.util.ArrayList<java.lang.Integer> l)
|
void |
setCheckSum(int checkSum)
|
void |
setCompleted(boolean b)
|
void |
setDescription(java.lang.String description)
|
void |
setHitMap(java.util.HashMap<java.lang.Integer,java.lang.Integer> hitMap)
|
void |
setISchemeName(java.lang.String iScheme)
|
void |
setIterationDoubleLoopsMap(java.util.HashMap<java.lang.Integer,java.lang.Integer> iterationDoubleLoopsMap)
|
void |
sumUp(TestCase tc)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
checkSum
private int checkSum
description
private java.lang.String description
fileName
private java.lang.String fileName
hitMap
private java.util.HashMap<java.lang.Integer,java.lang.Integer> hitMap
invokationMap
java.util.HashMap<java.lang.Integer,int[]> invokationMap
iSchemeName
private java.lang.String iSchemeName
isCompleted
private boolean isCompleted
iterationDoubleLoopsMap
private java.util.HashMap<java.lang.Integer,java.lang.Integer> iterationDoubleLoopsMap
iterationSingleLoopsMap
private java.util.HashMap<java.lang.Integer,java.lang.Integer> iterationSingleLoopsMap
iterationSkipsMap
private java.util.HashMap<java.lang.Integer,java.lang.Integer> iterationSkipsMap
listOfPaths
private java.util.ArrayList<java.util.ArrayList<java.lang.Integer>> listOfPaths
mapOfCoveredBIPaths
private java.util.HashMap<java.lang.Integer,java.util.HashSet<java.lang.Long>> mapOfCoveredBIPaths
mapOfCoveredModBIPaths
private java.util.HashMap<java.lang.Integer,java.util.HashSet<java.lang.Long>> mapOfCoveredModBIPaths
name
private java.lang.String name
number
private int number
projectName
private java.lang.String projectName
selectionMap
private java.util.HashMap<java.lang.Integer,java.lang.Integer> selectionMap
tryWithoutCatchMap
private java.util.HashMap<java.lang.Integer,java.lang.Integer> tryWithoutCatchMap
tvMap
private java.util.HashMap<java.lang.Integer,java.util.TreeSet<java.lang.String>> tvMap
TestCase
public TestCase(int number,
java.lang.String fileName,
java.lang.String projectName,
java.lang.String testName,
java.lang.String description,
java.lang.String iScheme)
addCoveredBIPath
public void addCoveredBIPath(int functionID,
long biPath)
addCoveredModBIPath
public void addCoveredModBIPath(int id,
long modBIPath)
addHitMap
public void addHitMap(java.util.HashMap<java.lang.Integer,java.lang.Integer> newHitMap)
addIterationDoubleLoop
public void addIterationDoubleLoop(int id,
int nrDoubleLoops)
addIterationLoopsMap
public void addIterationLoopsMap(java.util.HashMap<java.lang.Integer,java.lang.Integer> iterationLoopsMap)
addIterationSingleLoop
public void addIterationSingleLoop(int id,
int nrSingleLoops)
addIterationSkip
public void addIterationSkip(int id,
int nrSkips)
addIterationSkipsMap
public void addIterationSkipsMap(java.util.HashMap<java.lang.Integer,java.lang.Integer> map)
addListOfPaths
public void addListOfPaths(java.util.ArrayList<java.util.ArrayList<java.lang.Integer>> pathList)
addSelection
public void addSelection(int id,
int nrSelects)
addTruthVector
public void addTruthVector(int id,
java.lang.String tv)
addTryWithoutException
public void addTryWithoutException(int id,
int nr)
compareTo
public int compareTo(TestCase arg0)
- Specified by:
compareTo
in interface java.lang.Comparable<TestCase>
computeInvokationMap
public void computeInvokationMap()
getCheckSum
public int getCheckSum()
getDescription
public java.lang.String getDescription()
- Specified by:
getDescription
in interface ITestContainer
getFileName
public java.lang.String getFileName()
getHitMap
public java.util.HashMap<java.lang.Integer,java.lang.Integer> getHitMap()
getInvokationMap
public java.util.HashMap<java.lang.Integer,int[]> getInvokationMap()
- Specified by:
getInvokationMap
in interface ITestContainer
getISchemeName
public java.lang.String getISchemeName()
- Specified by:
getISchemeName
in interface ITestContainer
getIterationDoubleLoopsMap
public java.util.HashMap<java.lang.Integer,java.lang.Integer> getIterationDoubleLoopsMap()
getIterationSingleLoopsMap
public java.util.HashMap<java.lang.Integer,java.lang.Integer> getIterationSingleLoopsMap()
getIterationSkipsMap
public java.util.HashMap<java.lang.Integer,java.lang.Integer> getIterationSkipsMap()
getListOfPaths
public java.util.ArrayList<java.util.ArrayList<java.lang.Integer>> getListOfPaths()
getMapOfCoveredBIPaths
public java.util.HashMap<java.lang.Integer,java.util.HashSet<java.lang.Long>> getMapOfCoveredBIPaths()
getMapOfCoveredModBIPaths
public java.util.HashMap<java.lang.Integer,java.util.HashSet<java.lang.Long>> getMapOfCoveredModBIPaths()
getName
public java.lang.String getName()
- Specified by:
getName
in interface ITestContainer
getNrOfPaths
public int getNrOfPaths()
- Specified by:
getNrOfPaths
in interface ITestContainer
getNumber
public int getNumber()
getPathString
public static java.lang.String getPathString(java.util.ArrayList<java.lang.Integer> list)
getPathString
public static java.lang.String getPathString(java.util.HashSet<java.lang.Long> hashSet)
getProjectName
public java.lang.String getProjectName()
getSelection
public int getSelection(int id)
getSelectionMap
public java.util.HashMap<java.lang.Integer,java.lang.Integer> getSelectionMap()
getTryWithoutExceptionMap
public java.util.HashMap<java.lang.Integer,java.lang.Integer> getTryWithoutExceptionMap()
getTvMap
public java.util.HashMap<java.lang.Integer,java.util.TreeSet<java.lang.String>> getTvMap()
isCompleted
public boolean isCompleted()
print
public void print()
printHitMap
public void printHitMap()
printPath
public static void printPath(java.util.ArrayList<java.lang.Integer> l)
setCheckSum
public void setCheckSum(int checkSum)
setCompleted
public void setCompleted(boolean b)
setDescription
public void setDescription(java.lang.String description)
setHitMap
public void setHitMap(java.util.HashMap<java.lang.Integer,java.lang.Integer> hitMap)
setISchemeName
public void setISchemeName(java.lang.String iScheme)
setIterationDoubleLoopsMap
public void setIterationDoubleLoopsMap(java.util.HashMap<java.lang.Integer,java.lang.Integer> iterationDoubleLoopsMap)
sumUp
public void sumUp(TestCase tc)