mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-11-08 21:43:00 -05:00
test(search): cover an implicitly joined scope at the start and in the middle
This commit is contained in:
1 parent
b2e18fde13
commit
be27939a42
1 file changed
+2
@@ -22,6 +22,8 @@ var _ = DescribeTable("ExtractScope",
|
||||
Entry("at the start", `scope:1$2!3 AND name:x`, `name:x`, `1$2!3`),
|
||||
Entry("in the middle", `name:x AND scope:1$2!3 AND tag:y`, `name:x AND tag:y`, `1$2!3`),
|
||||
Entry("joined implicitly", `name:x scope:1$2!3`, `name:x`, `1$2!3`),
|
||||
Entry("joined implicitly at the start", `scope:1$2!3 name:x`, `name:x`, `1$2!3`),
|
||||
Entry("between free text", `foo scope:1$2!3 bar`, `foo bar`, `1$2!3`),
|
||||
Entry("joined with OR", `name:x OR scope:1$2!3`, `name:x`, `1$2!3`),
|
||||
Entry("negated", `name:x AND NOT scope:1$2!3`, `name:x`, `1$2!3`),
|
||||
Entry("negated at the start", `NOT scope:1$2!3 AND name:x`, `name:x`, `1$2!3`),
|
||||
|
||||
Reference in new issue
Block a user