Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/docker/docker-agent
/ newFakeClock
Function
newFakeClock
pkg/runtime/clock_test.go:20–20 ·
view source on GitHub ↗
(t time.Time)
Source
from the content-addressed store, hash-verified
18
}
19
20
func
newFakeClock(t time.Time) *fakeClock {
return
&fakeClock{t: t} }
21
22
func
(c *fakeClock) Now() time.Time {
return
c.t }
23
Callers
7
TestCooldownManager_SetAndGet
Function · 0.85
TestCooldownManager_GetEvictsExpired
Function · 0.85
TestCooldownManager_SetReplacesExistingEntry
Function · 0.85
TestCooldownManager_Clear
Function · 0.85
TestCooldownManager_PerAgentIsolation
Function · 0.85
TestWithClock_AppliedToRuntime
Function · 0.85
TestFallbackCooldown_UsesInjectedClock
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected