Skip to content

Instantly share code, notes, and snippets.

@nanoninja
Last active July 21, 2017 15:00
Show Gist options
  • Save nanoninja/6048a4bb33a44ead4afd73e500c08f04 to your computer and use it in GitHub Desktop.
Save nanoninja/6048a4bb33a44ead4afd73e500c08f04 to your computer and use it in GitHub Desktop.
Go Memento

Go Memento

Code Coverage

Download

go get golang.org/x/tools/cmd/cover

Running tests

go test -v -coverprofile cover.out ./... ./...

Getting code coverage in HTML

go tool cover -html="cover.out" -o cover.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment