(t *testing.T)
| 390 | } |
| 391 | |
| 392 | func TestKVFileList_CleanMatchKey(t *testing.T) { |
| 393 | var list = testOpenKVFileList(t) |
| 394 | defer func() { |
| 395 | _ = list.Close() |
| 396 | }() |
| 397 | |
| 398 | var before = time.Now() |
| 399 | |
| 400 | defer func() { |
| 401 | var costSeconds = time.Since(before).Seconds() |
| 402 | t.Log("cost:", fmt.Sprintf("%.2fms", costSeconds*1000)) |
| 403 | }() |
| 404 | |
| 405 | err := list.CleanMatchKey("https://*.example.com/index.html123") |
| 406 | if err != nil { |
| 407 | t.Fatal(err) |
| 408 | } |
| 409 | } |
| 410 | |
| 411 | func BenchmarkKVFileList_Exist(b *testing.B) { |
| 412 | var list = caches.NewKVFileList(Tea.Root + "/data/stores/cache-stores") |
nothing calls this directly
no test coverage detected