MCPcopy Create free account
hub / github.com/allegro/bigcache / TestEntryNotFound

Function TestEntryNotFound

bigcache_test.go:226–242  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

224}
225
226func 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
244func TestTimingEviction(t *testing.T) {
245 t.Parallel()

Callers

nothing calls this directly

Calls 3

NewFunction · 0.85
assertEqualFunction · 0.70
GetMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…