From 6b7ac2ac1b668081bdfe01ef0e018af82ed77cb9 Mon Sep 17 00:00:00 2001 From: Guangwen Feng Date: Fri, 24 Jul 2020 18:21:42 +0800 Subject: [PATCH] Add unit test case to improve test coverage for matcher.go (#7658) Signed-off-by: Guangwen Feng --- promql/parser/printer_test.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/promql/parser/printer_test.go b/promql/parser/printer_test.go index d7b89262aa..4765704665 100644 --- a/promql/parser/printer_test.go +++ b/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 {