test(search): cover an implicitly joined scope at the start and in the middle

This commit is contained in:
Dominik Schmidt committed 2026-11-27 17:28:15 +01:00
1 parent 79f522c5fe
commit ef53745b04
1 file changed
+2
+2
View File
@@ -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`),