(t *testing.T)
| 88 | } |
| 89 | |
| 90 | func TestGetNonExistentKey(t *testing.T) { |
| 91 | config.ConfigStore.Store(newTestRedisConfig(t)) |
| 92 | ctx := context.Background() |
| 93 | mockCache, err := NewCache() |
| 94 | assert.NoError(t, err) |
| 95 | |
| 96 | var getValue map[string]string |
| 97 | err = mockCache.Get(ctx, "nonExistentKey", &getValue) |
| 98 | assert.NoError(t, err) // Assuming Get returns no error for non-existent keys |
| 99 | assert.Empty(t, getValue) |
| 100 | } |
| 101 | |
| 102 | func TestDelete(t *testing.T) { |
| 103 | config.ConfigStore.Store(newTestRedisConfig(t)) |
nothing calls this directly
no test coverage detected