Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testAfterStop (0.07 sec)

  1. 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)
Back to top