From be27939a42fc04c8d6fc22ca8f27628aa92f4253 Mon Sep 17 00:00:00 2001 From: Dominik Schmidt Date: Tue, 27 Oct 2026 14:02:18 +0100 Subject: [PATCH] test(search): cover an implicitly joined scope at the start and in the middle --- services/search/pkg/search/scope_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/search/pkg/search/scope_test.go b/services/search/pkg/search/scope_test.go index fb4eae7287..eac8bb36f0 100644 --- a/services/search/pkg/search/scope_test.go +++ b/services/search/pkg/search/scope_test.go @@ -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`),