Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 31 of 31 for NewFakeClock (0.1 sec)

  1. pkg/controller/controller_utils_test.go

    func NewFakeControllerExpectationsLookup(ttl time.Duration) (*ControllerExpectations, *testingclock.FakeClock) {
    	fakeTime := time.Date(2009, time.November, 10, 23, 0, 0, 0, time.UTC)
    	fakeClock := testingclock.NewFakeClock(fakeTime)
    	ttlPolicy := &cache.TTLPolicy{TTL: ttl, Clock: fakeClock}
    	ttlStore := cache.NewFakeExpirationStore(
    		ExpKeyFunc, nil, ttlPolicy, fakeClock)
    	return &ControllerExpectations{ttlStore}, fakeClock
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 39.4K bytes
    - Viewed (0)
Back to top