(c chan<- reflect.Value, f reflect.Value, vs ...reflect.Value)
| 364 | } |
| 365 | |
| 366 | func detectRaces(c chan<- reflect.Value, f reflect.Value, vs ...reflect.Value) { |
| 367 | var ret reflect.Value |
| 368 | defer func() { |
| 369 | recover() // Ignore panics, let the other call to f panic instead |
| 370 | c <- ret |
| 371 | }() |
| 372 | ret = f.Call(vs)[0] |
| 373 | } |
| 374 | |
| 375 | func (s *state) compareStruct(t reflect.Type, vx, vy reflect.Value) { |
| 376 | var addr bool |
no outgoing calls
no test coverage detected