From ee4a011a62a893673665033165beff858558b2ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A5=A5=E8=B6=85?= Date: Sun, 24 Mar 2024 21:37:21 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0KV=E5=AD=98=E5=82=A8=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E7=94=A8=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/caches/list_file_kv_test.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/internal/caches/list_file_kv_test.go b/internal/caches/list_file_kv_test.go index f17fc34..d84a59b 100644 --- a/internal/caches/list_file_kv_test.go +++ b/internal/caches/list_file_kv_test.go @@ -167,6 +167,20 @@ func TestKVFileList_Exist(t *testing.T) { } } +func TestKVFileList_ExistQuick(t *testing.T) { + var list = testOpenKVFileList(t) + for _, hash := range []string{ + stringutil.Md5("123456"), + stringutil.Md5("654321"), + } { + b, err := list.ExistQuick(hash) + if err != nil { + t.Fatal(err) + } + t.Log(hash, "=>", b) + } +} + func TestKVFileList_Remove(t *testing.T) { var list = testOpenKVFileList(t) for _, hash := range []string{