MCPcopy
hub / github.com/rclone/rclone / TestClear

Function TestClear

lib/cache/cache_test.go:220–233  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

218}
219
220func 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
235func TestEntries(t *testing.T) {
236 c, create := setup(t)

Callers

nothing calls this directly

Calls 4

setupFunction · 0.85
GetMethod · 0.65
EqualMethod · 0.45
ClearMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…