dvyukov / go-fuzz

Randomized testing for Go
Apache License 2.0
4.79k stars 279 forks source link

The Diff About cover.exe and sonar.exe #344

Closed DuckRui closed 2 years ago

DuckRui commented 2 years ago

Hi, I am reading about the go-fuzz source code, But I'm not understand the different about cover.exe and sonar.exe. It seems like both of them are used to calculate coverage. Can you help me solve this problem? Thank you very much!

dvyukov commented 2 years ago

IIRC cover.exe contains instrumentation that allows to collect code coverage; while sonar.exe contains instrumentation that allows to collect comparison operands.