Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestIntegrator (0.1 sec)

  1. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/integrator_test.go

    limitations under the License.
    */
    
    package fairqueuing
    
    import (
    	"math"
    	"testing"
    	"time"
    
    	testclock "k8s.io/utils/clock/testing"
    )
    
    func TestIntegrator(t *testing.T) {
    	now := time.Now()
    	clk := testclock.NewFakeClock(now)
    	igr := NewNamedIntegrator(clk, "testee")
    	igr.Add(3)
    	clk.Step(time.Second)
    	results := igr.GetResults()
    	rToo := igr.Reset()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 27 21:11:44 UTC 2022
    - 1.6K bytes
    - Viewed (0)
Back to top