mirror of
https://github.com/golang/go
synced 2024-10-01 13:08:32 -06:00
030b2cf115
Change-Id: Ifd9dd5684c8467442cb551a72b4d35ae6faed599 Reviewed-on: https://go-review.googlesource.com/c/tools/+/197158 Run-TryBot: Ian Cottrell <iancottrell@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Rebecca Stambler <rstambler@golang.org>
31 lines
447 B
Plaintext
31 lines
447 B
Plaintext
-- 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")
|
|
}
|
|
|