(t *testing.T)
| 6 | ) |
| 7 | |
| 8 | func TestStopAndDrainTimer_NilTimer(t *testing.T) { |
| 9 | // Should not panic on nil timer. |
| 10 | StopAndDrainTimer(nil) |
| 11 | } |
| 12 | |
| 13 | func TestStopAndDrainTimer_UnfiredTimer(t *testing.T) { |
| 14 | timer := time.NewTimer(time.Hour) |
nothing calls this directly
no test coverage detected