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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user