From 826907b0797cdc25f921117e2ee44fc0dc2d21c3 Mon Sep 17 00:00:00 2001 From: 180909 <734461790@qq.com> Date: Sat, 14 Aug 2021 15:02:47 +0800 Subject: [PATCH] rephrase and add more information --- src/cmd/go/alldocs.go | 3 ++- src/cmd/go/internal/test/test.go | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/cmd/go/alldocs.go b/src/cmd/go/alldocs.go index af5671b399..f919699627 100644 --- a/src/cmd/go/alldocs.go +++ b/src/cmd/go/alldocs.go @@ -2659,7 +2659,8 @@ // Do not start new tests after the first test failure. // // -json -// Make the test results available in JSON. +// Log verbose output and test results in JSON. This presents the +// same information as the -v flag in a machine-readable format. // // -list regexp // List tests, benchmarks, or examples matching the regular expression. diff --git a/src/cmd/go/internal/test/test.go b/src/cmd/go/internal/test/test.go index 560f44e610..2a09ab3db9 100644 --- a/src/cmd/go/internal/test/test.go +++ b/src/cmd/go/internal/test/test.go @@ -243,7 +243,8 @@ control the execution of any test: Do not start new tests after the first test failure. -json - Make the test results available in JSON. + Log verbose output and test results in JSON. This presents the + same information as the -v flag in a machine-readable format. -list regexp List tests, benchmarks, or examples matching the regular expression.