mirror of
https://github.com/prometheus/prometheus
synced 2024-12-24 23:42:32 +00:00
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:
parent
93e9c010f3
commit
6b7ac2ac1b
@ -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…
Reference in New Issue
Block a user