File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
gopls/internal/test/integration/misc Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ module import.test
36
36
37
37
go 1.12
38
38
-- import.test@v1.2.3/pkg/const.go --
39
+ // package documentation
39
40
package pkg
40
41
41
42
const Hello = "Hello"
@@ -49,10 +50,11 @@ const Hello = "Hello"
49
50
50
51
modLink := "https://pkg.go.dev/mod/import.test@v1.2.3"
51
52
pkgLink := "https://pkg.go.dev/import.test@v1.2.3/pkg"
53
+ pkgDoc := "package documentation"
52
54
53
55
// First, check that we get the expected links via hover and documentLink.
54
56
content , _ := env .Hover (env .RegexpSearch ("main.go" , "pkg.Hello" ))
55
- if content == nil || ! strings .Contains (content .Value , pkgLink ) {
57
+ if content == nil || ! strings .Contains (content .Value , pkgDoc ) {
56
58
t .Errorf ("hover: got %v in main.go, want contains %q" , content , pkgLink )
57
59
}
58
60
content , _ = env .Hover (env .RegexpSearch ("go.mod" , "import.test" ))
You can’t perform that action at this time.
0 commit comments