Support more than one line per message

This commit is contained in:
Lou Knauer
2021-09-13 12:26:55 +02:00
parent 53d5734fd5
commit 4d17abdbc8
2 changed files with 32 additions and 14 deletions

View File

@@ -43,7 +43,7 @@ var expectedFields = []Metric{
var expectedTimestamp int64 = 1629356936
func TestParseLine(t *testing.T) {
line, err := Parse(raw)
line, err := ParseLine(raw)
if err != nil {
t.Error(err)
}
@@ -80,7 +80,7 @@ func BenchmarkParseLine(b *testing.B) {
}
line := scanner.Text()
_, err := Parse(line)
_, err := ParseLine(line)
if err != nil {
b.Error(err)
return