mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-09-10 15:53:34 +02:00
go-test: add -cover example (#7858)
This commit is contained in:
parent
6c177bf48b
commit
fa9cbe265b
1 changed files with 4 additions and 0 deletions
|
@ -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`
|
||||
|
|
Loading…
Add table
Reference in a new issue