improve coverage

This commit is contained in:
aler9
2021-05-12 16:03:15 +02:00
parent 4d1c2d1831
commit 8be64d9cf6
8 changed files with 123 additions and 19 deletions

View File

@@ -138,6 +138,16 @@ func TestHeaderReadErrors(t *testing.T) {
[]byte{},
"EOF",
},
{
"missing value",
[]byte("Testing:"),
"EOF",
},
{
"missing eol",
[]byte("Testing: val"),
"EOF",
},
{
"r without n",
[]byte("Testing: val\rTesting: val\r\n"),