Debian Codegraph @

gopls/internal/test/marker/testdata/completion/issue62560.txt

raw
1 This test verifies that completion of package members in unimported packages
2 reflects their fuzzy score, even when those members are present in the
3 transitive import graph of the main module. (For technical reasons, this was
4 the nature of the regression in golang/go#62560.)
5
6 -- go.mod --
7 module mod.test
8
9 -- foo/foo.go --
10 package foo
11
12 func _() {
13 json.U //@rank(re"U()", "Unmarshal", "InvalidUTF8Error"), diag("json", re"(undefined|undeclared)")
14 }
15
16 -- bar/bar.go --
17 package bar
18
19 import _ "encoding/json"