MCPcopy
hub / github.com/uber-go/zap / TestSystemClock_NewTicker

Function TestSystemClock_NewTicker

zapcore/clock_test.go:33–44  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

31var _ Clock = (*ztest.MockClock)(nil)
32
33func TestSystemClock_NewTicker(t *testing.T) {
34 want := 3
35
36 var n int
37 timer := DefaultClock.NewTicker(time.Millisecond)
38 for range timer.C {
39 n++
40 if n == want {
41 return
42 }
43 }
44}

Callers

nothing calls this directly

Calls 1

NewTickerMethod · 0.65

Tested by

no test coverage detected