go-test: add -cover example (#7858)

This commit is contained in:
Nicolas Kosinski 2022-03-07 13:04:55 +01:00 committed by GitHub
parent 6c177bf48b
commit fa9cbe265b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,3 +22,7 @@
- Test the package in the current directory and run all benchmarks for 50 seconds:
`go test -v -bench . -benchtime {{50s}}`
- Test the package with coverage analysis:
`go test -cover`