1
0
mirror of https://github.com/golang/go synced 2024-11-19 05:04:43 -07:00
go/internal/lsp/testdata/rename/testy/testy_test.go.golden

31 lines
447 B
Plaintext
Raw Normal View History

-- b-rename --
testy.go:
package testy
type tt int //@rename("tt", "testyType")
func b() {
foo := 42 //@rename("foo", "bar")
}
testy_test.go:
package testy
import "testing"
func TestSomething(t *testing.T) {
var x int //@rename("x", "testyX")
b() //@rename("a", "b")
}
-- testyX-rename --
package testy
import "testing"
func TestSomething(t *testing.T) {
var testyX int //@rename("x", "testyX")
a() //@rename("a", "b")
}