1
0
mirror of https://github.com/prometheus/alertmanager.git synced 2026-02-05 15:45:34 +01:00

Document difference between tab and newline in tests (#3383)

Signed-off-by: George Robinson <george.robinson@grafana.com>
This commit is contained in:
George Robinson
2023-06-07 18:32:48 +01:00
committed by GitHub
parent 83304da507
commit 9f683fc4e7

View File

@@ -282,6 +282,22 @@ func TestMatchers(t *testing.T) {
return append(ms, m1, m2)
}(),
},
{
input: `{foo=bar\t}`,
want: func() []*Matcher {
ms := []*Matcher{}
m, _ := NewMatcher(MatchEqual, "foo", "bar\\t")
return append(ms, m)
}(),
},
{
input: `{foo=bar\n}`,
want: func() []*Matcher {
ms := []*Matcher{}
m, _ := NewMatcher(MatchEqual, "foo", "bar\n")
return append(ms, m)
}(),
},
{
input: `job=`,
want: func() []*Matcher {