golang.org/x/tools/gopls@v0.15.3/internal/test/marker/testdata/rename/bad.txt (about) 1 This test checks that rename fails in the presence of errors. 2 3 -- go.mod -- 4 module golang.org/lsptests/bad 5 6 go 1.18 7 8 -- bad.go -- 9 package bad 10 11 type myStruct struct { 12 } 13 14 func (s *myStruct) sFunc() bool { //@renameerr("sFunc", "rFunc", re"not possible") 15 return s.Bad //@diag("Bad", re"no field or method") 16 } 17 18 -- bad_test.go -- 19 package bad