MCPcopy Create free account
hub / github.com/aws-cloudformation/rain / TestReadFile

Function TestReadFile

cft/parse/parse_test.go:124–133  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

122}
123
124func TestReadFile(t *testing.T) {
125 actual, err := parse.File(testFile)
126 if err != nil {
127 t.Error(err)
128 }
129
130 if diff := cmp.Diff(actual.Map(), expected.Map()); diff != "" {
131 t.Errorf("%s", diff)
132 }
133}
134
135func TestReadString(t *testing.T) {
136 actual, err := parse.String(testTemplate)

Callers

nothing calls this directly

Calls 2

FileFunction · 0.92
MapMethod · 0.80

Tested by

no test coverage detected