Debian Codegraph @

gopls/internal/test/marker/testdata/hover/goprivate.txt

raw
1 This test checks that links in hover obey GOPRIVATE.
2
3 -- env --
4 GOPRIVATE=mod.com
5 -- go.mod --
6 module mod.com
7 -- p.go --
8 package p
9
10 // T should not be linked, as it is private.
11 type T struct{} //@hover("T", "T", T)
12 -- lib/lib.go --
13 package lib
14
15 // GOPRIVATE should also match nested packages.
16 type L struct{} //@hover("L", "L", L)
17 -- @L --
18 ```go
19 type L struct{} // size=0
20 ```
21
22 ---
23
24 GOPRIVATE should also match nested packages.
25 -- @T --
26 ```go
27 type T struct{} // size=0
28 ```
29
30 ---
31
32 T should not be linked, as it is private.