(t *testing.T)
| 20 | } |
| 21 | |
| 22 | func TestNewDisableableTicker_Disabled(t *testing.T) { |
| 23 | stop, ch := newDisableableTicker(0) |
| 24 | defer stop() |
| 25 | |
| 26 | time.Sleep(100 * time.Millisecond) |
| 27 | |
| 28 | select { |
| 29 | case <-ch: |
| 30 | t.Error("ticker should not have ticked when disabled") |
| 31 | default: |
| 32 | break |
| 33 | } |
| 34 | } |
nothing calls this directly
no test coverage detected