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

Function detectRaces

cmp/compare.go:366–373  ·  view source on GitHub ↗
(c chan<- reflect.Value, f reflect.Value, vs ...reflect.Value)

Source from the content-addressed store, hash-verified

364}
365
366func 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
375func (s *state) compareStruct(t reflect.Type, vx, vy reflect.Value) {
376 var addr bool

Callers 2

callTRFuncMethod · 0.85
callTTBFuncMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected