(t *testing.T)
| 284 | } |
| 285 | |
| 286 | func TestResetPanic(t *testing.T) { |
| 287 | defer func() { |
| 288 | r := recover() |
| 289 | if r == nil || r.(string) != "timer: Reset called on uninitialized Timer" { |
| 290 | t.Errorf("reset timer: invalid reset panic") |
| 291 | } |
| 292 | }() |
| 293 | |
| 294 | timer := &Timer{} |
| 295 | timer.Reset(0) |
| 296 | } |
| 297 | |
| 298 | func TestResetBehavior(t *testing.T) { |
| 299 | start := time.Now() |
nothing calls this directly
no test coverage detected
searching dependent graphs…