MCPcopy
hub / github.com/google/go-cmp / Ignore

Function Ignore

cmp/options.go:198–198  ·  view source on GitHub ↗

Ignore is an [Option] that causes all comparisons to be ignored. This value is intended to be combined with [FilterPath] or [FilterValues]. It is an error to pass an unfiltered Ignore option to [Equal].

()

Source from the content-addressed store, hash-verified

196// This value is intended to be combined with [FilterPath] or [FilterValues].
197// It is an error to pass an unfiltered Ignore option to [Equal].
198func Ignore() Option { return ignore{} }
199
200type ignore struct{ core }
201

Callers 9

comparerTestsFunction · 0.92
BenchmarkBytesFunction · 0.92
IgnoreFieldsFunction · 0.92
IgnoreTypesFunction · 0.92
IgnoreInterfacesFunction · 0.92
IgnoreUnexportedFunction · 0.92
IgnoreSliceElementsFunction · 0.92
IgnoreMapEntriesFunction · 0.92
TestOptionPanicFunction · 0.85

Calls

no outgoing calls

Tested by 3

comparerTestsFunction · 0.74
BenchmarkBytesFunction · 0.74
TestOptionPanicFunction · 0.68