MCPcopy Create free account
hub / github.com/google/go-cmp / FakeMutex

Struct FakeMutex

cmp/internal/teststructs/project3.go:42–45  ·  view source on GitHub ↗

This is an sanitized example of equality from a real use-case. The original equality function was as follows: * func equalDirt(x, y *Dirt) bool { if !reflect.DeepEqual(x.table, y.table) || !reflect.DeepEqual(x.ts, y.ts) || x.Discord != y.Discord || !pb.Equal(&x.Proto, &y.Proto) || len(x.wiz

Source from the content-addressed store, hash-verified

40*/
41
42type FakeMutex struct {
43 sync.Locker
44 x struct{}
45}
46
47type Dirt struct {
48 table Table // Always concrete type of MockTable

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected