Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDebounceTimer ¶
func NewDebounceTimer(o *DebounceTimerOption) (*cage_time_mocks.Timer, *cage_time_mocks.Clock, chan time.Time, <-chan time.Time)
NewDebounceTimer expands on NewTimer by providing a channel to which tests can write in order to simulate a timer expiration.
func NewTimer ¶
func NewTimer() (*cage_time_mocks.Timer, *cage_time_mocks.Clock)
NewTimer returns a mock timer and a mock clock configured to provide it.
Types ¶
type DebounceTimerOption ¶
type DebounceTimerOption struct {
ResetReturnTrue bool
}
Click to show internal directories.
Click to hide internal directories.