(t *testing.T)
| 355 | } |
| 356 | |
| 357 | func 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 | } |
nothing calls this directly
no test coverage detected