(t *testing.T)
| 224 | } |
| 225 | |
| 226 | func TestEntryNotFound(t *testing.T) { |
| 227 | t.Parallel() |
| 228 | |
| 229 | // given |
| 230 | cache, _ := New(context.Background(), Config{ |
| 231 | Shards: 16, |
| 232 | LifeWindow: 5 * time.Second, |
| 233 | MaxEntriesInWindow: 10, |
| 234 | MaxEntrySize: 256, |
| 235 | }) |
| 236 | |
| 237 | // when |
| 238 | _, err := cache.Get("nonExistingKey") |
| 239 | |
| 240 | // then |
| 241 | assertEqual(t, ErrEntryNotFound, err) |
| 242 | } |
| 243 | |
| 244 | func TestTimingEviction(t *testing.T) { |
| 245 | t.Parallel() |
nothing calls this directly
no test coverage detected
searching dependent graphs…