MCPcopy
hub / github.com/Netflix/chaosmonkey / Clock

Interface Clock

clock/clock.go:21–24  ·  view source on GitHub ↗

Clock provides an interface to the current time, useful for testing

Source from the content-addressed store, hash-verified

19
20// Clock provides an interface to the current time, useful for testing
21type Clock interface {
22 // Now returns the current time
23 Now() time.Time
24}
25
26// New returns an implementation of Clock that uses the system time
27func New() Clock {

Callers 8

deployScheduleFunction · 0.65
todayFunction · 0.65
doTerminateFunction · 0.65
PickRandomInstanceFunction · 0.65
TestCheckPermittedFunction · 0.65
TestCheckForbiddenFunction · 0.65
TestCheckLeashedFunction · 0.65

Implementers 2

SystemClockclock/clock.go
Clockmock/deps.go

Calls

no outgoing calls

Tested by

no test coverage detected