|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sofya.apps.dejavu.TestMapper sofya.apps.dejavu.BlockTestMapper
public class BlockTestMapper
Test mapper which performs a mapping from basic blocks selected by DejaVu to the tests that hit those blocks.
Constructor Summary | |
---|---|
BlockTestMapper(java.lang.String histFile)
Standard constructor, initializes the edge mapper with the given test history file. |
Method Summary | |
---|---|
int |
getTotalNumberOfTests()
Returns the number of tests in the test history. |
sofya.apps.dejavu.SelectionData |
selectTests(java.lang.String methodName,
Edge[] dangerousEdges)
Selects tests based on the dangerous edge list for a given method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BlockTestMapper(java.lang.String histFile) throws java.io.FileNotFoundException, BadFileFormatException, java.io.IOException
histFile
- Path to the test history file for the
program, either absolute or relative to the current working
directory.
java.io.FileNotFoundException
- If the specified test history
file cannot be found.
BadFileFormatException
- If the test history file is
corrupted.
java.io.IOException
- For any other IO error which prevents
the test history file from being read successfully.Method Detail |
---|
public sofya.apps.dejavu.SelectionData selectTests(java.lang.String methodName, Edge[] dangerousEdges) throws MethodNotFoundException
TestMapper
selectTests
in class TestMapper
methodName
- Name of the method for which test selection is
occurring.dangerousEdges
- List of dangerous edges found in the method,
to be mapped to corresponding tests.
MethodNotFoundException
- If the method test descriptor references
a method that cannot be found in the test history file.public int getTotalNumberOfTests()
TestMapper
getTotalNumberOfTests
in class TestMapper
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |