MCPcopy Create free account
hub / github.com/AdRoll/baker / diff

Function diff

e2e_test.go:74–86  ·  view source on GitHub ↗
(f1, f2 string)

Source from the content-addressed store, hash-verified

72}
73
74func diff(f1, f2 string) (bool, error) {
75 b1, err := os.ReadFile(f1)
76 if err != nil {
77 return false, fmt.Errorf("can't read file 1 %q: %s", f1, err)
78 }
79
80 b2, err := os.ReadFile(f2)
81 if err != nil {
82 return false, fmt.Errorf("can't read file 2 %q: %s", f2, err)
83 }
84
85 return bytes.Equal(b1, b2), nil
86}

Callers 1

testE2EFullTopologyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected