Add more tests to TestMatchers (#3362)
Signed-off-by: George Robinson <george.robinson@grafana.com>
This commit is contained in:
parent
f67d03fe28
commit
93797c3c9d
|
@ -28,6 +28,14 @@ func TestMatchers(t *testing.T) {
|
||||||
input: `{}`,
|
input: `{}`,
|
||||||
want: make([]*Matcher, 0),
|
want: make([]*Matcher, 0),
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
input: `,`,
|
||||||
|
err: "bad matcher format: ",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
input: `{,}`,
|
||||||
|
err: "bad matcher format: ",
|
||||||
|
},
|
||||||
{
|
{
|
||||||
input: `{foo='}`,
|
input: `{foo='}`,
|
||||||
want: func() []*Matcher {
|
want: func() []*Matcher {
|
||||||
|
|
Loading…
Reference in New Issue