(t *testing.T, before, after string, context int, stripTrailingCR bool, expected string)
| 158 | } |
| 159 | |
| 160 | func assertDiff(t *testing.T, before, after string, context int, stripTrailingCR bool, expected string) { |
| 161 | ansi.DisableColors(true) |
| 162 | var output bytes.Buffer |
| 163 | diffs := diffStrings(before, after, stripTrailingCR) |
| 164 | printDiffRecords([]string{}, "some-resource", context, diffs, &output) |
| 165 | actual := output.String() |
| 166 | if actual != expected { |
| 167 | t.Errorf("Unexpected diff output: \nExpected:\n#%v# \nActual:\n#%v#", expected, actual) |
| 168 | } |
| 169 | } |
| 170 | |
| 171 | func TestManifests(t *testing.T) { |
| 172 | ansi.DisableColors(true) |
no test coverage detected