(t *testing.T)
| 218 | } |
| 219 | |
| 220 | func TestClear(t *testing.T) { |
| 221 | c, create := setup(t) |
| 222 | |
| 223 | assert.Equal(t, 0, len(c.cache)) |
| 224 | |
| 225 | _, err := c.Get("/", create) |
| 226 | require.NoError(t, err) |
| 227 | |
| 228 | assert.Equal(t, 1, len(c.cache)) |
| 229 | |
| 230 | c.Clear() |
| 231 | |
| 232 | assert.Equal(t, 0, len(c.cache)) |
| 233 | } |
| 234 | |
| 235 | func TestEntries(t *testing.T) { |
| 236 | c, create := setup(t) |