feat(fileinfostore): support GetSharing

This commit is contained in:
hexxa 2021-08-11 15:29:53 +08:00 committed by Hexxa
parent c78692df52
commit e74c3c34e3
2 changed files with 13 additions and 0 deletions

View file

@ -30,6 +30,10 @@ func TestUserStores(t *testing.T) {
if !sharingMap[sharingDir] {
t.Fatalf("sharing(%s) not found", sharingDir)
}
mustTrue, exist := store.GetSharing(sharingDir)
if !mustTrue || !exist {
t.Fatalf("get sharing(%t %t) should exist", mustTrue, exist)
}
}
for _, dirPath := range dirPaths {
@ -47,6 +51,10 @@ func TestUserStores(t *testing.T) {
if sharingMap[dirPath] {
t.Fatalf("sharing(%s) should not exist", dirPath)
}
_, exist := store.GetSharing(dirPath)
if exist {
t.Fatalf("get sharing(%t) should not exit", exist)
}
}
}