(t *testing.T)
| 17 | ) |
| 18 | |
| 19 | func TestFileList_Init(t *testing.T) { |
| 20 | if !testutils.IsSingleTesting() { |
| 21 | return |
| 22 | } |
| 23 | |
| 24 | var list = caches.NewSQLiteFileList(Tea.Root + "/data/cache-index/p1") |
| 25 | |
| 26 | defer func() { |
| 27 | _ = list.Close() |
| 28 | }() |
| 29 | |
| 30 | err := list.Init() |
| 31 | if err != nil { |
| 32 | t.Fatal(err) |
| 33 | } |
| 34 | defer func() { |
| 35 | _ = list.Close() |
| 36 | }() |
| 37 | t.Log("ok") |
| 38 | } |
| 39 | |
| 40 | func TestFileList_Add(t *testing.T) { |
| 41 | if !testutils.IsSingleTesting() { |
nothing calls this directly
no test coverage detected