Skip to content

Commit b19be0f

Browse files
adonovangopherbot
authored andcommitted
gopls/internal/cmd/help_test.go: document
Change-Id: Ia1d242e67fe36d5042891ee2db69a01b092d6b84 Reviewed-on: https://go-review.googlesource.com/c/tools/+/544256 Auto-Submit: Alan Donovan <[email protected]> Reviewed-by: Robert Findley <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
1 parent daa4aa5 commit b19be0f

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

gopls/internal/cmd/help_test.go

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@
44

55
package cmd_test
66

7+
// This file defines tests to ensure the cmd/usage/*.hlp files match
8+
// the output of the tool. The .hlp files are not actually needed by
9+
// the executable (they are not //go:embed-ded, say), but they make it
10+
// easier to review changes to the gopls command's help logic since
11+
// any effects are manifest as changes to these files.
12+
13+
//go:generate go test -run Help -update-help-files
14+
715
import (
816
"bytes"
917
"context"
@@ -18,8 +26,6 @@ import (
1826
"golang.org/x/tools/internal/tool"
1927
)
2028

21-
//go:generate go test -run Help -update-help-files
22-
2329
var updateHelpFiles = flag.Bool("update-help-files", false, "Write out the help files instead of checking them")
2430

2531
const appName = "gopls"

0 commit comments

Comments
 (0)