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

Method test2

output/java/1.4.14/STViz.java:489–502  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

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