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

Function TestReadString

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

Source from the content-addressed store, hash-verified

133}
134
135func TestReadString(t *testing.T) {
136 actual, err := parse.String(testTemplate)
137 if err != nil {
138 t.Error(err)
139 }
140
141 if diff := cmp.Diff(actual.Map(), expected.Map()); diff != "" {
142 t.Errorf("%s", diff)
143 }
144}
145
146func TestVerifyOutput(t *testing.T) {
147 source, err := parse.Map(map[string]interface{}{

Callers

nothing calls this directly

Calls 2

StringFunction · 0.92
MapMethod · 0.80

Tested by

no test coverage detected