- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for assertLess (0.1 sec)
-
staging/src/k8s.io/apimachinery/pkg/util/cache/lruexpirecache_test.go
// the eviction list. func assertKeys(t *testing.T, gotKeys, wantKeys []interface{}) { t.Helper() if diff := cmp.Diff(gotKeys, wantKeys); diff != "" { t.Errorf("Wrong result for keys: diff (-got +want):\n%s", diff) } } func TestSimpleGet(t *testing.T) { c := NewLRUExpireCache(10) c.Add("long-lived", "12345", 10*time.Hour) assertKeys(t, c.Keys(), []interface{}{"long-lived"})
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Nov 03 18:40:48 UTC 2023 - 4.3K bytes - Viewed (0)