Documentation ¶
Overview ¶
Package testclock provides a convenient Clock implementation for testing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Clock ¶
type Clock struct {
// contains filtered or unexported fields
}
Clock is a clock used for testing.
func New ¶
New creates a new Clock for testing with a tick of 0. For this clock, Now() always returns the value the clock was created with.
Click to show internal directories.
Click to hide internal directories.