MCPcopy Index your code
hub / github.com/cortexproject/cortex / TestStopAndDrainTimer_NilTimer

Function TestStopAndDrainTimer_NilTimer

pkg/util/timer/timer_test.go:8–11  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

6)
7
8func TestStopAndDrainTimer_NilTimer(t *testing.T) {
9 // Should not panic on nil timer.
10 StopAndDrainTimer(nil)
11}
12
13func TestStopAndDrainTimer_UnfiredTimer(t *testing.T) {
14 timer := time.NewTimer(time.Hour)

Callers

nothing calls this directly

Calls 1

StopAndDrainTimerFunction · 0.85

Tested by

no test coverage detected