bug sur les fin de lignes non enclosed (manque le dernier char)

This commit is contained in:
laurentu 2024-08-08 15:23:56 +02:00
parent 1ea2bab9e8
commit c363b760d9
1 changed files with 9 additions and 0 deletions

View File

@ -90,4 +90,13 @@ func TestCorrectLines(t *testing.T) {
}
fmt.Println("event is", event)
line = "GET /Actions-de-l-Etat/Vos-aides/Particuliers/Pass-culture?_escaped_fragment_=/particuliers/page/R65575 HTTP/1.1"
fmt.Println("parsing:", line)
csvParser.Initialize(" ", true, []string{"\"\""}, "verb uri http-version", "ignore")
event, err = csvParser.Parse(line)
if err != nil {
t.Fatalf("Parsing of empty line failed %v %v", err, event)
}
fmt.Println("event is", event)
}