增加KV存储测试用例

This commit is contained in:
刘祥超
2024-03-24 21:37:21 +08:00
parent 23f5503a08
commit ee4a011a62

View File

@@ -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{