(t *testing.T)
| 65 | } |
| 66 | |
| 67 | func TestMemoryCache_noTrimByDefault(t *testing.T) { |
| 68 | t.Parallel() |
| 69 | c, err := New(Config{Enabled: true}) |
| 70 | require.NoError(t, err) |
| 71 | |
| 72 | c.Store(" hello ", "world") |
| 73 | |
| 74 | _, ok := c.Lookup("hello") |
| 75 | assert.False(t, ok, "without TrimSpaces, whitespace must be significant") |
| 76 | } |
| 77 | |
| 78 | func TestMemoryCache_overwrite(t *testing.T) { |
| 79 | t.Parallel() |