stubLock implements Locker for testing purposes.
| 7 | |
| 8 | // stubLock implements Locker for testing purposes. |
| 9 | type stubLock struct { |
| 10 | lockErr error |
| 11 | unlockErr error |
| 12 | afterLock func() |
| 13 | } |
| 14 | |
| 15 | func (s *stubLock) Lock(string) error { |
| 16 | if s.afterLock != nil { |
nothing calls this directly
no outgoing calls
no test coverage detected