package timetest
import "github.com/ydb-platform/ydb-go-sdk/v3/testutil/timeutil/timetest"
Index ¶
- type SingleTimerStub
- type Timer
- func (t Timer) C() <-chan time.Time
- func (t Timer) Reset(d time.Duration) bool
- func (t Timer) Stop() bool
- type TimerStub
- type TimerStubs
Types ¶
type SingleTimerStub ¶
type SingleTimerStub struct { TimerStub Cleanup func() }
func StubSingleTimer ¶
func StubSingleTimer(t *testing.T) *SingleTimerStub
type Timer ¶
func (Timer) C ¶
func (Timer) Reset ¶
func (Timer) Stop ¶
type TimerStub ¶
type TimerStub struct { C chan time.Time Created chan time.Duration Reset chan time.Duration // contains filtered or unexported fields }
func (*TimerStub) Init ¶
type TimerStubs ¶
func StubTimers ¶
func StubTimers(t *testing.T, callers ...string) (ts TimerStubs, cleanup func())
Source Files ¶
- Version
- v3.11.3
- Published
- Feb 22, 2022
- Platform
- darwin/amd64
- Imports
- 6 packages
- Last checked
- 3 seconds ago –
Tools for package owners.