NormalizedEqual compares two byte slices after normalizing output. This is used as a custom goldie.EqualFn for cross-platform golden file tests.
(actual, expected []byte)
| 330 | // NormalizedEqual compares two byte slices after normalizing output. |
| 331 | // This is used as a custom goldie.EqualFn for cross-platform golden file tests. |
| 332 | func NormalizedEqual(actual, expected []byte) bool { |
| 333 | return bytes.Equal(normalizeOutput(actual), normalizeOutput(expected)) |
| 334 | } |
| 335 | |
| 336 | func TestNormalizeOutput(t *testing.T) { |
| 337 | t.Parallel() |
nothing calls this directly
no test coverage detected
searching dependent graphs…