pkg/cover: fix error message capitalization in tests

Follow up to #2074
This commit is contained in:
Dmitry Vyukov 2020-09-26 18:06:53 +02:00
parent 3bbd2f185f
commit f9bcf3095b

View File

@ -198,12 +198,12 @@ func checkCSVReport(t *testing.T, CSVReport []byte) {
} }
if !reflect.DeepEqual(lines[0], csvHeader) { if !reflect.DeepEqual(lines[0], csvHeader) {
t.Fatalf("Heading line in CSV doesn't match %v", lines[0]) t.Fatalf("heading line in CSV doesn't match %v", lines[0])
} }
for _, line := range lines { for _, line := range lines {
if line[1] == "main" && line[2] != "1" && line[3] != "1" { if line[1] == "main" && line[2] != "1" && line[3] != "1" {
t.Fatalf("Function coverage percentage doesn't match %v vs. %v", line[2], "100") t.Fatalf("function coverage percentage doesn't match %v vs. %v", line[2], "100")
} }
} }
} }