mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-25 05:34:05 -08: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 a new issue