fakeLocker is a fake sync.Locker where unlock calls an arbitrary function.
| 76 | |
| 77 | // fakeLocker is a fake sync.Locker where unlock calls an arbitrary function. |
| 78 | type fakeLocker struct { |
| 79 | unlock func() |
| 80 | } |
| 81 | |
| 82 | func (l fakeLocker) Lock() {} |
| 83 | func (l fakeLocker) Unlock() { l.unlock() } |
nothing calls this directly
no outgoing calls
no test coverage detected