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

Method filter

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

filter applies all filters and returns the option that remains. Each option may only read s.curPath and call s.callTTBFunc. An Options is returned only if multiple comparers or transformers can apply simultaneously and will only contain values of those types or sub-Options containing values of thos

(s *state, t reflect.Type, vx, vy reflect.Value)

Source from the content-addressed store, hash-verified

30 // can apply simultaneously and will only contain values of those types
31 // or sub-Options containing values of those types.
32 filter(s *state, t reflect.Type, vx, vy reflect.Value) applicableOption
33}
34
35// applicableOption represents the following types:

Callers 4

tryOptionsMethod · 0.65
filterMethod · 0.65
filterMethod · 0.65
filterMethod · 0.65

Implementers 12

pathFiltercmp/options.go
valuesFiltercmp/options.go
ignorecmp/options.go
validatorcmp/options.go
transformercmp/options.go
comparercmp/options.go
reportercmp/options.go
sliceSortercmp/cmpopts/sort.go
mapSortercmp/cmpopts/sort.go
unexportedFiltercmp/cmpopts/ignore.go
structFiltercmp/cmpopts/struct_filter.go
xformFiltercmp/cmpopts/xform.go

Calls

no outgoing calls

Tested by

no test coverage detected