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

Function TestDiff

cft/diff/format_test.go:111–123  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

109}
110
111func TestDiff(t *testing.T) {
112 for _, testCase := range diffCases {
113 actualShort := testCase.value.Format(false)
114 if actualShort != testCase.expectedShort {
115 t.Errorf("\n%s\nDOES NOT MATCH SHORT\n%s\n", actualShort, testCase.expectedShort)
116 }
117
118 actualLong := testCase.value.Format(true)
119 if actualLong != testCase.expectedLong {
120 t.Errorf("\n%s\nDOES NOT MATCH LONG\n%s\n", actualLong, testCase.expectedLong)
121 }
122 }
123}

Callers

nothing calls this directly

Calls 1

FormatMethod · 0.65

Tested by

no test coverage detected