From 5d7eb6d8f9384c84c494f644fad5d0e1ec6277ae Mon Sep 17 00:00:00 2001 From: Marco Pracucci Date: Fri, 29 Sep 2023 15:01:41 +0200 Subject: [PATCH] Make linter happy Signed-off-by: Marco Pracucci --- model/labels/regexp_test.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/model/labels/regexp_test.go b/model/labels/regexp_test.go index ee26cfeedb..123f2f19bb 100644 --- a/model/labels/regexp_test.go +++ b/model/labels/regexp_test.go @@ -615,17 +615,20 @@ func TestStringMatcherFromRegexp_Quest(t *testing.T) { expectedZeroOrOneMatchers: 1, expectedMatches: []string{"test", "test!"}, expectedNotMatches: []string{"test\n", "tes", "test!!"}, - }, { + }, + { pattern: ".?test", expectedZeroOrOneMatchers: 1, expectedMatches: []string{"test", "!test"}, expectedNotMatches: []string{"\ntest", "tes", "test!"}, - }, { + }, + { pattern: "(aaa.?|bbb.?)", expectedZeroOrOneMatchers: 2, expectedMatches: []string{"aaa", "aaaX", "bbb", "bbbX"}, expectedNotMatches: []string{"aa", "aaaXX", "aaa\n", "bb", "bbbXX", "bbb\n"}, - }, { + }, + { pattern: ".*aaa.?", expectedZeroOrOneMatchers: 1, expectedMatches: []string{"aaa", "Xaaa", "aaaX", "XXXaaa", "XXXaaaX"},