go-test: add -cover example (#7858)
This commit is contained in:
@@ -22,3 +22,7 @@
|
|||||||
- Test the package in the current directory and run all benchmarks for 50 seconds:
|
- Test the package in the current directory and run all benchmarks for 50 seconds:
|
||||||
|
|
||||||
`go test -v -bench . -benchtime {{50s}}`
|
`go test -v -bench . -benchtime {{50s}}`
|
||||||
|
|
||||||
|
- Test the package with coverage analysis:
|
||||||
|
|
||||||
|
`go test -cover`
|
||||||
|
Reference in New Issue
Block a user