- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for TestSimpleCache (0.18 sec)
-
staging/src/k8s.io/apiserver/pkg/authentication/token/cache/cache_test.go
"fmt" "math/rand" "testing" "time" "github.com/google/uuid" "k8s.io/apiserver/pkg/authentication/authenticator" "k8s.io/apiserver/pkg/authentication/user" "k8s.io/utils/clock" ) func TestSimpleCache(t *testing.T) { testCache(newSimpleCache(clock.RealClock{}), t) } // Note: the performance profile of this benchmark may not match that in the production.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Sep 15 09:52:18 UTC 2021 - 3.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/value/encrypt/envelope/kmsv2/cache_test.go
f() wg.Done() }() } wg.Wait() allocs := testing.AllocsPerRun(100, f) if allocs > 1 { t.Errorf("Expected 1 allocations, got %v", allocs) } }) } func TestSimpleCache(t *testing.T) { fakeClock := testingclock.NewFakeClock(time.Now()) cache := newSimpleCache(fakeClock, 5*time.Second, "providerName") transformer := &envelopeTransformer{} wg := sync.WaitGroup{}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Aug 31 20:26:58 UTC 2023 - 4.9K bytes - Viewed (0)