Package daikon.test
Class VarInfoNameTest
- Object
-
- VarInfoNameTest
-
public class VarInfoNameTest extends Object
This tests various aspects of VarInfoName's and transforming VarInfoName's. This calls VarInfoNameDriver after parsing all input files of the name "varInfoNameTest.foo". VarInfoNameDriver does transform tests, and its output is compared to the "varInfoNameTest.foo.goal" file by this.To add a new test case, add a line to the foo file and a line to the goal file with intended output. Format of the foo file is output method, followed by a variable name. Output methods are defined in VarInfoNameDriver. To add a new transformation method (which can then be tested in test cases) add a static Handler implementation to VarInfoNameDriver modeled after one of the ones already present and add a static {} line after to add the handler to the list of handlers.
-
-
Constructor Summary
Constructors Constructor Description VarInfoNameTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
setUpClass()
prepare for testsvoid
testJML()
void
testParse()
void
testSubscript()
-
-
-
Constructor Detail
-
VarInfoNameTest
public VarInfoNameTest()
-
-
Method Detail
-
setUpClass
public static void setUpClass()
prepare for tests
-
testParse
public void testParse()
-
testSubscript
public void testSubscript()
-
testJML
public void testJML()
-
-