Document difference between tab and newline in tests (#3383)
Signed-off-by: George Robinson <george.robinson@grafana.com>
This commit is contained in:
parent
83304da507
commit
9f683fc4e7
|
@ -282,6 +282,22 @@ func TestMatchers(t *testing.T) {
|
||||||
return append(ms, m1, m2)
|
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=`,
|
input: `job=`,
|
||||||
want: func() []*Matcher {
|
want: func() []*Matcher {
|
||||||
|
|
Loading…
Reference in New Issue