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

Method Now

middleware/limiter/limiter_test.go:35–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33}
34
35func (c *testClock) Now() time.Time {
36 c.mu.Lock()
37 defer c.mu.Unlock()
38 return c.now
39}
40
41func (c *testClock) Add(d time.Duration) {
42 c.mu.Lock()

Calls 2

LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected