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

Method Now

middleware/cache/cache_test.go:45–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43}
44
45func (c *testClock) Now() time.Time {
46 c.mu.Lock()
47 defer c.mu.Unlock()
48 return c.now
49}
50
51func (c *testClock) Add(d time.Duration) {
52 c.mu.Lock()

Calls 2

LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected