feat(fileinfostore): support GetSharing
This commit is contained in:
parent
c78692df52
commit
e74c3c34e3
2 changed files with 13 additions and 0 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue