lib/ignores: Use bitmask for result
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3030
This commit is contained in:
committed by
Jakob Borg
parent
29fa05ae05
commit
abb96802cb
@@ -21,8 +21,8 @@ func TestCache(t *testing.T) {
|
||||
|
||||
// Set and check some items
|
||||
|
||||
c.set("true", Result{true, true})
|
||||
c.set("false", Result{false, false})
|
||||
c.set("true", resultInclude|resultDeletable)
|
||||
c.set("false", 0)
|
||||
|
||||
res, ok = c.get("true")
|
||||
if !res.IsIgnored() || !res.IsDeletable() || ok != true {
|
||||
|
||||
Reference in New Issue
Block a user