MCPcopy Create free account
hub / github.com/CloudyKit/jet / TestPrintFile

Method TestPrintFile

parse_test.go:68–76  ·  view source on GitHub ↗
(file string)

Source from the content-addressed store, hash-verified

66}
67
68func (t ParserTestCase) TestPrintFile(file string) {
69 content, err := ioutil.ReadFile(path.Join("./testData", file))
70 if err != nil {
71 t.Errorf("file %s not found", file)
72 return
73 }
74 parts := bytes.Split(content, []byte("==="))
75 t.ExpectPrintName(file, string(bytes.TrimSpace(parts[0])), string(bytes.TrimSpace(parts[1])))
76}
77
78func (t ParserTestCase) ExpectPrintSame(input string) {
79 t.ExpectPrint(input, input)

Calls 1

ExpectPrintNameMethod · 0.95

Tested by

no test coverage detected