File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 4
4
5
5
package cmd_test
6
6
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
+
7
15
import (
8
16
"bytes"
9
17
"context"
@@ -18,8 +26,6 @@ import (
18
26
"golang.org/x/tools/internal/tool"
19
27
)
20
28
21
- //go:generate go test -run Help -update-help-files
22
-
23
29
var updateHelpFiles = flag .Bool ("update-help-files" , false , "Write out the help files instead of checking them" )
24
30
25
31
const appName = "gopls"
You can’t perform that action at this time.
0 commit comments