Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Clock ¶
type Clock interface {
Now() time.Time
Since(t time.Time) time.Duration
NewTimer(d time.Duration) Timer
After(d time.Duration) <-chan time.Time
}
Clock abstracts time operations for deterministic testing.
type MockClock ¶
type MockClock struct {
// contains filtered or unexported fields
}
MockClock is a deterministic clock for testing.
Click to show internal directories.
Click to hide internal directories.