From a59d1d587bce65317b4e2c562fb74f82814c3aed Mon Sep 17 00:00:00 2001 From: Antoine Grondin Date: Tue, 10 Dec 2019 15:38:17 +0900 Subject: [PATCH] reproducer for #26 --- parser/logfmt/logfmt_parser_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/parser/logfmt/logfmt_parser_test.go b/parser/logfmt/logfmt_parser_test.go index 0ccab6c..3d6831b 100644 --- a/parser/logfmt/logfmt_parser_test.go +++ b/parser/logfmt/logfmt_parser_test.go @@ -36,6 +36,12 @@ func TestScanKeyValue(t *testing.T) { {key: []byte("hello"), val: []byte("bye")}, }, }, + { + input: "hello=", + want: []kv{ + {key: []byte("hello"), val: nil}, + }, + }, { input: "hello=bye crap crap", want: []kv{