(t *testing.T)
| 351 | } |
| 352 | |
| 353 | func TestFileList_Count(t *testing.T) { |
| 354 | if !testutils.IsSingleTesting() { |
| 355 | return |
| 356 | } |
| 357 | |
| 358 | var list = caches.NewSQLiteFileList(Tea.Root + "/data") |
| 359 | |
| 360 | defer func() { |
| 361 | _ = list.Close() |
| 362 | }() |
| 363 | |
| 364 | err := list.Init() |
| 365 | if err != nil { |
| 366 | t.Fatal(err) |
| 367 | } |
| 368 | var before = time.Now() |
| 369 | count, err := list.Count() |
| 370 | if err != nil { |
| 371 | t.Fatal(err) |
| 372 | } |
| 373 | t.Log("count:", count) |
| 374 | t.Log(time.Since(before).Seconds()*1000, "ms") |
| 375 | } |
| 376 | |
| 377 | func TestFileList_CleanAll(t *testing.T) { |
| 378 | if !testutils.IsSingleTesting() { |
nothing calls this directly
no test coverage detected