MCPcopy
hub / github.com/rclone/rclone / TestClearConfig

Function TestClearConfig

fs/cache/cache_test.go:264–277  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

262}
263
264func TestClearConfig(t *testing.T) {
265 create := mockNewFs(t)
266
267 assert.Equal(t, 0, Entries())
268
269 _, err := GetFn(context.Background(), "mock:/file.txt", create)
270 require.Equal(t, fs.ErrorIsFile, err)
271
272 assert.Equal(t, 1, Entries())
273
274 assert.Equal(t, 1, ClearConfig("mock"))
275
276 assert.Equal(t, 0, Entries())
277}
278
279func TestClear(t *testing.T) {
280 create := mockNewFs(t)

Callers

nothing calls this directly

Calls 5

EntriesFunction · 0.85
GetFnFunction · 0.85
ClearConfigFunction · 0.85
mockNewFsFunction · 0.70
EqualMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…