- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for testAfterStop (0.07 sec)
-
src/time/sleep_test.go
t.Fatalf("%d ticks of %s too slow: took %s, expected %s", Count, Delta, d, target) } } func TestAfterStop(t *testing.T) { t.Run("impl=chan", func(t *testing.T) { testAfterStop(t, NewTimer) }) t.Run("impl=func", func(t *testing.T) { testAfterStop(t, newTimerFunc) }) } func testAfterStop(t *testing.T, newTimer func(Duration) *Timer) { // We want to test that we stop a timer before it runs.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 22 16:33:57 UTC 2024 - 22.5K bytes - Viewed (0)