This project is a pure Go implementation of a gcov coverage data parsing tool. The binary tool gcovgo provides functionality similar to the gcov, gcov-dump and gcov-tool commands. Additionally, the project can be integrated as a Go library.
docker run with image ghcr.io/yhlooo/gcovgo:
docker run -it --rm ghcr.io/yhlooo/gcovgo:latest --helpDownload the executable binary from the Releases page, extract it, and place the gcovgo file into any $PATH directory.
Requires Go 1.24. Execute the following command to download the source code and build it:
go install github.com/yhlooo/gcovgo/cmd/gcovgo@latestThe built binary will be located in ${GOPATH}/bin by default. Make sure this directory is included in your $PATH.
Similar to the gcov command, this function takes .gcno and .gcda files, then outputs parsed coverage information.
gcovgo path/to/file.gcnoSimilar to the gcov-dump command, this function accepts either .gcno or .gcda files. It outputs the file content in a human-readable or easily processable format (e.g. JSON).
gcovgo dump path/to/file.gcno