Don't hide line parsing errors

This commit is contained in:
Martin Milata
2016-12-12 14:43:30 +01:00
parent 0ff0c0fc7a
commit 861984c215
3 changed files with 15 additions and 3 deletions

View File

@ -278,3 +278,11 @@ func TestErrorReadDirectory(t *testing.T) {
t.Errorf("Expected error, got %v", envMap)
}
}
func TestErrorParsing(t *testing.T) {
envFileName := "fixtures/invalid1.env"
envMap, err := Read(envFileName)
if err == nil {
t.Errorf("Expected error, got %v", envMap)
}
}