(t *testing.T)
| 26 | } |
| 27 | |
| 28 | func Test_Storage_Memory_SetWithContext(t *testing.T) { |
| 29 | t.Parallel() |
| 30 | var ( |
| 31 | testStore = New() |
| 32 | key = "john" |
| 33 | val = []byte("doe") |
| 34 | ) |
| 35 | |
| 36 | ctx, cancel := context.WithCancel(context.Background()) |
| 37 | cancel() |
| 38 | |
| 39 | err := testStore.SetWithContext(ctx, key, val, 0) |
| 40 | require.ErrorIs(t, err, context.Canceled) |
| 41 | |
| 42 | keys, err := testStore.Keys() |
| 43 | require.NoError(t, err) |
| 44 | require.Nil(t, keys) |
| 45 | } |
| 46 | |
| 47 | func Test_Storage_Memory_Set_Override(t *testing.T) { |
| 48 | t.Parallel() |
nothing calls this directly
no test coverage detected