Documentation ¶
Index ¶
- type Mocker
- func (m *Mocker) AdvanceTime(ctx context.Context, d time.Duration) error
- func (m *Mocker) Close() error
- func (m *Mocker) Inject(ctx context.Context) error
- func (m *Mocker) Remove(ctx context.Context) error
- func (m *Mocker) Reset(ctx context.Context) error
- func (m *Mocker) SetSpeed(ctx context.Context, speed float64) error
- func (m *Mocker) SetTime(ctx context.Context, t time.Time) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mocker ¶
type Mocker struct {
// contains filtered or unexported fields
}
func (*Mocker) AdvanceTime ¶
AdvanceTime advances the time by the given duration.
func (*Mocker) Reset ¶
Reset sets the time to the current real time and resumes the normal flow of time.
Click to show internal directories.
Click to hide internal directories.