MCPcopy Create free account
hub / github.com/antlr/codebuff / test2

Method test2

output/java/1.4.17/STViz.java:493–506  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

491 }
492
493 public static void test2() throws IOException
494 { // test rig
495 String templates = "t1(q1=\"Some\\nText\") ::= <<\n"+
496 "<q1>\n" +">>\n"+"\n"+"t2(p1) ::= <<\n"+
497 "<p1>\n"+
498 ">>\n"+
499 "\n"+
500 "main() ::= <<\n" +"START-<t1()>-END\n"+"\n"+"START-<t2(p1=\"Some\\nText\")>-END\n"+">>\n";
501 String tmpdir = System.getProperty("java.io.tmpdir");
502 writeFile(tmpdir, "t.stg", templates);
503 STGroup group = new STGroupFile(tmpdir+"/"+"t.stg");
504 ST st = group.getInstanceOf("main");
505 STViz viz = st.inspect();
506 }
507
508 public static void test3() throws IOException
509 {

Callers 1

mainMethod · 0.95

Calls 4

writeFileMethod · 0.95
inspectMethod · 0.95
getPropertyMethod · 0.65
getInstanceOfMethod · 0.45

Tested by

no test coverage detected