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
| 40 | */ |
| 41 | |
| 42 | type FakeMutex struct { |
| 43 | sync.Locker |
| 44 | x struct{} |
| 45 | } |
| 46 | |
| 47 | type Dirt struct { |
| 48 | table Table // Always concrete type of MockTable |
nothing calls this directly
no outgoing calls
no test coverage detected