- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestLRU_Add_UnlimitedSize_NoEviction (0.19 sec)
-
tests/lru_test.go
lru.Add("key1", 1) lru.Add("key2", 2) lru.Add("key3", 3) if _, ok := lru.Get("key1"); ok { t.Errorf("Expected key1 to be removed, but it still exists") } } func TestLRU_Add_UnlimitedSize_NoEviction(t *testing.T) { lru := lru.NewLRU[string, int](0, nil, time.Hour) lru.Add("key1", 1) lru.Add("key2", 2) lru.Add("key3", 3) if _, ok := lru.Get("key1"); !ok {
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Sun May 25 07:40:40 UTC 2025 - 10.4K bytes - Viewed (0)