$ go install github.com/nikolaydubina/go-cover-treemap@latest
$ make cover
confirm coverage.html and treemap.svg
$ make coverpkg
confirm coverage.html and treemap.svg
read Code coverage for Go integration tests, then try it.
$ make bin/covapi
$ GOCOVERDIR="$PWD/covdir" ./bin/covapi
confirm covdir to store coverage data.
$ ls -l covdir
$ curl localhost:8081/version
$ curl localhost:8081/groups
request users handler some times to get both normal and error responses.
$ curl localhost:8081/users
$ curl localhost:8081/users
$ curl localhost:8081/users
$ curl localhost:8081/users
$ curl localhost:8081/users
stop covapi binary with ctrl+c.
confirm covdir to store coverage data.
$ ls -l covdir
$ make itcoverage
confirm covdir to store coverage data.
$ ls -l covdir
confirm coverage.html and treemap.svg