MCPcopy
hub / github.com/go-task/task / NormalizedEqual

Function NormalizedEqual

task_test.go:332–334  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

normalizeOutputFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…