Add more tests to TestMatchers (#3362)

Signed-off-by: George Robinson <george.robinson@grafana.com>
This commit is contained in:
George Robinson 2023-05-16 09:41:25 +01:00 committed by GitHub
parent f67d03fe28
commit 93797c3c9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -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 {