2019-07-08 19:53:01 -06:00
|
|
|
-- b-rename --
|
|
|
|
testy.go:
|
|
|
|
package testy
|
|
|
|
|
|
|
|
type tt int //@rename("tt", "testyType")
|
|
|
|
|
|
|
|
func b() {
|
2019-08-15 08:29:18 -06:00
|
|
|
foo := 42 //@rename("foo", "bar")
|
2019-07-08 19:53:01 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
testy_test.go:
|
|
|
|
package testy
|
|
|
|
|
|
|
|
import "testing"
|
|
|
|
|
|
|
|
func TestSomething(t *testing.T) {
|
|
|
|
var x int //@rename("x", "testyX")
|
|
|
|
b() //@rename("a", "b")
|
|
|
|
}
|
|
|
|
|
2019-09-23 21:12:28 -06:00
|
|
|
-- testyX-rename --
|
|
|
|
package testy
|
|
|
|
|
|
|
|
import "testing"
|
|
|
|
|
|
|
|
func TestSomething(t *testing.T) {
|
|
|
|
var testyX int //@rename("x", "testyX")
|
|
|
|
a() //@rename("a", "b")
|
|
|
|
}
|
2019-09-20 16:38:42 -06:00
|
|
|
|