(t *testing.T)
| 128 | } |
| 129 | |
| 130 | func TestStopPanic(t *testing.T) { |
| 131 | defer func() { |
| 132 | r := recover() |
| 133 | if r == nil || r.(string) != "timer: Stop called on uninitialized Timer" { |
| 134 | t.Errorf("stop timer: invalid stop panic") |
| 135 | } |
| 136 | }() |
| 137 | |
| 138 | timer := &Timer{} |
| 139 | timer.Stop() |
| 140 | } |
| 141 | |
| 142 | func TestMultipleStop(t *testing.T) { |
| 143 | var timers []*Timer |
nothing calls this directly
no test coverage detected
searching dependent graphs…