(t *testing.T)
| 375 | } |
| 376 | |
| 377 | func 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 | |
| 400 | func TestFileList_UpgradeV3(t *testing.T) { |
| 401 | if !testutils.IsSingleTesting() { |
nothing calls this directly
no test coverage detected