(t *testing.T)
| 328 | } |
| 329 | |
| 330 | func TestFileList_Stat(t *testing.T) { |
| 331 | if !testutils.IsSingleTesting() { |
| 332 | return |
| 333 | } |
| 334 | |
| 335 | var list = caches.NewSQLiteFileList(Tea.Root + "/data/cache-index/p1") |
| 336 | |
| 337 | defer func() { |
| 338 | _ = list.Close() |
| 339 | }() |
| 340 | |
| 341 | err := list.Init() |
| 342 | if err != nil { |
| 343 | t.Fatal(err) |
| 344 | } |
| 345 | |
| 346 | stat, err := list.Stat(nil) |
| 347 | if err != nil { |
| 348 | t.Fatal(err) |
| 349 | } |
| 350 | t.Log("count:", stat.Count, "size:", stat.Size, "valueSize:", stat.ValueSize) |
| 351 | } |
| 352 | |
| 353 | func TestFileList_Count(t *testing.T) { |
| 354 | if !testutils.IsSingleTesting() { |
nothing calls this directly
no test coverage detected