MCPcopy
hub / github.com/gofiber/fiber / stubLock

Struct stubLock

middleware/idempotency/stub_test.go:9–13  ·  view source on GitHub ↗

stubLock implements Locker for testing purposes.

Source from the content-addressed store, hash-verified

7
8// stubLock implements Locker for testing purposes.
9type stubLock struct {
10 lockErr error
11 unlockErr error
12 afterLock func()
13}
14
15func (s *stubLock) Lock(string) error {
16 if s.afterLock != nil {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected