Home
last modified time | relevance | path

Searched refs:testRuleName (Results 1 – 4 of 4) sorted by relevance

/external/antlr/gunit/src/main/resources/org/antlr/gunit/
Djunit.stg47 testTreeRuleMethod(methodName,testTreeRuleName,testRuleName,test,tokenType,expecting) ::= <<
50 …Object retval = execTreeParser(<testTreeRuleName>, <testRuleName>, "<test.inputEscaped>", <test.is…
58 testTreeRuleMethod2(methodName,testTreeRuleName,testRuleName,test,returnType,expecting) ::= <<
61 …<returnType> retval = (<returnType>)execTreeParser(<testTreeRuleName>, <testRuleName>, "<test.inpu…
67 testRuleMethod(isLexicalRule,methodName,testRuleName,test,tokenType,expecting) ::= <<
70 …Object retval = <if(isLexicalRule)>execLexer<else>execParser<endif>(<testRuleName>, <test.line>, "…
74 assertEquals("testing rule "+<testRuleName>, expecting, actual);
78 testRuleMethod2(methodName,testRuleName,test,returnType,expecting) ::= <<
81 …<returnType> retval = (<returnType>)execParser(<testRuleName>, <test.line>, "<test.inputEscaped>",…
83 assertTrue("testing rule "+<testRuleName>, <expecting>);
/external/antlr/gunit/src/main/java/org/antlr/gunit/
DgUnitBaseTest.java57 …public String execLexer(String testRuleName, int line, String testInput, boolean isFile) throws Ex… in execLexer() argument
83 Method ruleName = lexer.getMethod("m"+testRuleName); in execLexer()
146 …public Object execParser(String testRuleName, int line, String testInput, boolean isFile) throws E… in execParser() argument
187 Method ruleName = parser.getMethod(testRuleName); in execParser()
204 if ( ruleReturn.getClass().toString().indexOf(testRuleName+"_return")>0 ) { in execParser()
206 Class<?> _return = Class.forName(parserPath+"$"+testRuleName+"_return"); in execParser()
288 …public Object execTreeParser(String testTreeRuleName, String testRuleName, String testInput, boole… in execTreeParser() argument
329 Method ruleName = parser.getMethod(testRuleName); in execTreeParser()
343 Class<?> _return = Class.forName(parserPath+"$"+testRuleName+"_return"); in execTreeParser()
DgUnitExecutor.java232 …protected gUnitTestResult runLexer(String lexerName, String testRuleName, gUnitTestInput testInput… in runLexer() argument
246 Method ruleName = lexer.getMethod("m"+testRuleName); in runLexer()
306 …protected gUnitTestResult runParser(String parserName, String lexerName, String testRuleName, gUni… in runParser() argument
334 Method ruleName = parser.getMethod(testRuleName); in runParser()
351 if ( ruleReturn.getClass().toString().indexOf(testRuleName+"_return")>0 ) { in runParser()
353 Class<?> _return = classForName(parserName+"$"+testRuleName+"_return"); in runParser()
428 …protected gUnitTestResult runTreeParser(String parserName, String lexerName, String testRuleName, … in runTreeParser() argument
468 Method ruleName = parser.getMethod(testRuleName); in runTreeParser()
482 Class<?> _return = classForName(parserName+"$"+testRuleName+"_return"); in runTreeParser()
DJUnitCodeGen.java207 String testRuleName; in genParserMethods() local
209 if ( ts.isLexicalRule() ) testRuleName = ts.getLexicalRuleName(); in genParserMethods()
210 else testRuleName = ts.getRuleName(); in genParserMethods()
214 … testRuleMethodST.setAttribute("methodName", "test"+changeFirstCapital(testRuleName)+i); in genParserMethods()
215 testRuleMethodST.setAttribute("testRuleName", '"'+testRuleName+'"'); in genParserMethods()