(s *state, t reflect.Type, vx, vy reflect.Value)
| 179 | } |
| 180 | |
| 181 | func (f valuesFilter) filter(s *state, t reflect.Type, vx, vy reflect.Value) applicableOption { |
| 182 | if !vx.IsValid() || !vx.CanInterface() || !vy.IsValid() || !vy.CanInterface() { |
| 183 | return nil |
| 184 | } |
| 185 | if (f.typ == nil || t.AssignableTo(f.typ)) && s.callTTBFunc(f.fnc, vx, vy) { |
| 186 | return f.opt.filter(s, t, vx, vy) |
| 187 | } |
| 188 | return nil |
| 189 | } |
| 190 | |
| 191 | func (f valuesFilter) String() string { |
| 192 | return fmt.Sprintf("FilterValues(%s, %v)", function.NameOf(f.fnc), f.opt) |
nothing calls this directly
no test coverage detected