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

Method filter

cmp/options.go:134–139  ·  view source on GitHub ↗
(s *state, t reflect.Type, vx, vy reflect.Value)

Source from the content-addressed store, hash-verified

132}
133
134func (f pathFilter) filter(s *state, t reflect.Type, vx, vy reflect.Value) applicableOption {
135 if f.fnc(s.curPath) {
136 return f.opt.filter(s, t, vx, vy)
137 }
138 return nil
139}
140
141func (f pathFilter) String() string {
142 return fmt.Sprintf("FilterPath(%s, %v)", function.NameOf(reflect.ValueOf(f.fnc)), f.opt)

Callers

nothing calls this directly

Calls 1

filterMethod · 0.65

Tested by

no test coverage detected