pkg/cover: fix test name output

This commit is contained in:
Dmitry Vyukov 2020-05-29 11:17:59 +02:00
parent 6c68daf098
commit f9f8a06c7c

View File

@ -75,7 +75,7 @@ func TestReportGenerator(t *testing.T) {
}
for _, test := range tests {
test := test
t.Run("no-coverage", func(t *testing.T) {
t.Run(test.Name, func(t *testing.T) {
t.Parallel()
testReportGenerator(t, target, test)
})
@ -120,6 +120,7 @@ int main() {}
}
defer os.Remove(bin)
flags := append(append([]string{
"-w",
"-o", bin,
"-x", "c", src,
}, target.CFlags...), test.CFlags...)