(t *testing.T)
| 69 | } |
| 70 | |
| 71 | func TestConfigMapCacheLoadMiss(t *testing.T) { |
| 72 | ctx := logging.TestContext(t.Context()) |
| 73 | cancel, controller := newController(ctx) |
| 74 | defer cancel() |
| 75 | |
| 76 | _, err := controller.kubeclientset.CoreV1().ConfigMaps("default").Create(ctx, &sampleConfigMapEmptyCacheEntry, metav1.CreateOptions{}) |
| 77 | require.NoError(t, err) |
| 78 | c := cache.NewConfigMapCache("default", controller.kubeclientset, "whalesay-cache") |
| 79 | entry, err := c.Load(ctx, "hi-there-world") |
| 80 | require.NoError(t, err) |
| 81 | assert.Nil(t, entry) |
| 82 | } |
| 83 | |
| 84 | func TestConfigMapCacheSave(t *testing.T) { |
| 85 | var MockParamValue = "Hello world" |
nothing calls this directly
no test coverage detected