(t reflect.Type, vx, vy reflect.Value)
| 310 | } |
| 311 | |
| 312 | func (s *state) tryMethod(t reflect.Type, vx, vy reflect.Value) bool { |
| 313 | // Check if this type even has an Equal method. |
| 314 | m, ok := t.MethodByName("Equal") |
| 315 | if !ok || !function.IsType(m.Type, function.EqualAssignable) { |
| 316 | return false |
| 317 | } |
| 318 | |
| 319 | eq := s.callTTBFunc(m.Func, vx, vy) |
| 320 | s.report(eq, reportByMethod) |
| 321 | return true |
| 322 | } |
| 323 | |
| 324 | func (s *state) callTRFunc(f, v reflect.Value, step Transform) reflect.Value { |
| 325 | if !s.dynChecker.Next() { |
no test coverage detected