MCPcopy Create free account
hub / github.com/ContentSquare/chproxy / TestAsyncCache_Unknown_instantiation

Function TestAsyncCache_Unknown_instantiation

cache/async_cache_test.go:357–369  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

355}
356
357func TestAsyncCache_Unknown_instantiation(t *testing.T) {
358 var redisCfg = config.Cache{
359 Name: "test",
360 Mode: "Unkown Mode",
361 Redis: config.RedisCacheConfig{},
362 Expire: config.Duration(cacheTTL),
363 }
364
365 _, err := NewAsyncCache(redisCfg, 1*time.Second)
366 if err == nil {
367 t.Fatalf("The instanciation should have crash")
368 }
369}

Callers

nothing calls this directly

Calls 2

DurationTypeAlias · 0.92
NewAsyncCacheFunction · 0.85

Tested by

no test coverage detected