I would like to know how much coverage the fuzzer is achieving at a line level granularity to help me figure out which fuzzing tests I need to write next.
I can do
go test -fuzz=Fuzz -cover which includes
coverage: 12.5% of statements in the output but as soon as I try to add the
-coverprofile flag, I get the error:
cannot use -coverprofile flag with -fuzz flag.
The percentage information is better than nothing I guess but seeing as it’s a coverage guided profiler, I would imagine that the line level information should be available.
Is there another way I can achieve what I’m looking for? Or should I create a proposal?