golang.org/x/tools/gopls@v0.15.3/internal/test/marker/testdata/hover/issues.txt (about)

     1  This test verifies fixes for various issues reported for hover.
     2  
     3  -- go.mod --
     4  module golang.org/lsptests
     5  
     6  -- issue64239/p.go --
     7  package issue64239
     8  
     9  // golang/go#64239: hover fails for objects in the unsafe package.
    10  
    11  import "unsafe"
    12  
    13  var _ = unsafe.Sizeof(struct{}{}) //@hover("Sizeof", "Sizeof", "`Sizeof` on pkg.go.dev")
    14  
    15  -- issue64237/p.go --
    16  package issue64237
    17  
    18  // golang/go#64237: hover panics for broken imports.
    19  
    20  import "golang.org/lsptests/nonexistant" //@diag("\"golang", re"could not import")
    21  
    22  var _ = nonexistant.Value //@hovererr("nonexistant", "no package data")