(t *testing.T, name, g interface{}, w interface{})
| 223 | } |
| 224 | |
| 225 | func compareConfigurations(t *testing.T, name, g interface{}, w interface{}) { |
| 226 | var got, want bytes.Buffer |
| 227 | prettyPrint(t, &got, g) |
| 228 | prettyPrint(t, &want, w) |
| 229 | |
| 230 | if got.String() != want.String() { |
| 231 | t.Errorf("test %s configurations differ.\nGot:\n%s\nWant:\n%s\nDiff (want -> got), %s:\n%s", |
| 232 | name, &got, &want, name, test.Diff(want.Bytes(), got.Bytes())) |
| 233 | } |
| 234 | } |
| 235 | |
| 236 | func canonicalizeGolden(t *testing.T, v []byte) []byte { |
| 237 | localPath, err := filepath.Abs(relativeRing) |
no test coverage detected