MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / TestFileList_CleanAll

Function TestFileList_CleanAll

internal/caches/list_file_sqlite_test.go:377–398  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

375}
376
377func TestFileList_CleanAll(t *testing.T) {
378 if !testutils.IsSingleTesting() {
379 return
380 }
381
382 var list = caches.NewSQLiteFileList(Tea.Root + "/data")
383
384 defer func() {
385 _ = list.Close()
386 }()
387
388 err := list.Init()
389 if err != nil {
390 t.Fatal(err)
391 }
392 err = list.CleanAll()
393 if err != nil {
394 t.Fatal(err)
395 }
396 t.Log("ok")
397 t.Log(list.Count())
398}
399
400func TestFileList_UpgradeV3(t *testing.T) {
401 if !testutils.IsSingleTesting() {

Callers

nothing calls this directly

Calls 7

IsSingleTestingFunction · 0.92
NewSQLiteFileListFunction · 0.92
LogMethod · 0.80
CloseMethod · 0.65
InitMethod · 0.65
CleanAllMethod · 0.65
CountMethod · 0.65

Tested by

no test coverage detected