From fa9cbe265b5c14614d3ae60233856e7a411254b9 Mon Sep 17 00:00:00 2001 From: Nicolas Kosinski Date: Mon, 7 Mar 2022 13:04:55 +0100 Subject: [PATCH] go-test: add -cover example (#7858) --- pages/common/go-test.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/common/go-test.md b/pages/common/go-test.md index 10ab13824..b647f17e4 100644 --- a/pages/common/go-test.md +++ b/pages/common/go-test.md @@ -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`