Add unit test case to improve test coverage for matcher.go (#7658)

Signed-off-by: Guangwen Feng <fenggw-fnst@cn.fujitsu.com>
pull/7661/head
Guangwen Feng 6 years ago committed by GitHub
parent 93e9c010f3
commit 6b7ac2ac1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      promql/parser/printer_test.go

@ -89,6 +89,15 @@ func TestExprString(t *testing.T) {
{
in: `{__name__="a"}`,
},
{
in: `a{b!="c"}[1m]`,
},
{
in: `a{b=~"c"}[1m]`,
},
{
in: `a{b!~"c"}[1m]`,
},
}
for _, test := range inputs {

Loading…
Cancel
Save