Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogWriter ¶
type LogWriter struct {
Logs []string
}
LogWriter defines structure for log writer.
type MockTimerClient ¶
MockTimerClient contains mock timer client.
func (*MockTimerClient) Advance ¶
func (m *MockTimerClient) Advance(d time.Duration)
Advance simulates time passing and signal timers / tickers accordingly
func (*MockTimerClient) After ¶
func (m *MockTimerClient) After(d time.Duration) <-chan time.Time
After is mock of time.After().
func (*MockTimerClient) AfterCalledTimes ¶
func (m *MockTimerClient) AfterCalledTimes() uint64
AfterCalledTimes calculates number of times after is called.
func (*MockTimerClient) Tick ¶
func (m *MockTimerClient) Tick(d time.Duration) <-chan time.Time
Tick is mock of time.Tick().
func (*MockTimerClient) TickCalledTimes ¶
func (m *MockTimerClient) TickCalledTimes() uint64
TickCalledTimes calculates number of times tick is called.
Click to show internal directories.
Click to hide internal directories.