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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 0 deletions

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 {