Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestTick (0.37 sec)

  1. src/time/tick_test.go

    	if testing.Short() {
    		Delta = 20 * Millisecond
    	}
    	for range 3 {
    		ticker := NewTicker(Delta)
    		<-ticker.C
    		ticker.Stop()
    	}
    }
    
    // Test the Tick convenience wrapper.
    func TestTick(t *testing.T) {
    	// Test that giving a negative duration returns nil.
    	if got := Tick(-1); got != nil {
    		t.Errorf("Tick(-1) = %v; want nil", got)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:10:37 UTC 2024
    - 14.7K bytes
    - Viewed (0)
Back to top