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

Signed-off-by: Guangwen Feng <fenggw-fnst@cn.fujitsu.com>
This commit is contained in:
Guangwen Feng 2020-07-24 18:21:42 +08:00 committed by GitHub
parent 93e9c010f3
commit 6b7ac2ac1b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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