From 93797c3c9dad12ec7f7e1a836a27f617415571bd Mon Sep 17 00:00:00 2001 From: George Robinson Date: Tue, 16 May 2023 09:41:25 +0100 Subject: [PATCH] Add more tests to TestMatchers (#3362) Signed-off-by: George Robinson --- pkg/labels/parse_test.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkg/labels/parse_test.go b/pkg/labels/parse_test.go index e30d13c4..b3a4c889 100644 --- a/pkg/labels/parse_test.go +++ b/pkg/labels/parse_test.go @@ -28,6 +28,14 @@ func TestMatchers(t *testing.T) { input: `{}`, want: make([]*Matcher, 0), }, + { + input: `,`, + err: "bad matcher format: ", + }, + { + input: `{,}`, + err: "bad matcher format: ", + }, { input: `{foo='}`, want: func() []*Matcher {