mirror of
https://github.com/golang/go
synced 2024-11-19 06:34:42 -07:00
7b25e351ac
Support renaming of identifiers in test packages. The packages for all of the references must be checked and the changes need to be deduped, since both a package and its test package contain some of the same files. Fixes golang/go#32974 Change-Id: Ie51e19716faae77ce7e5254eeb3956faa42c2a09 Reviewed-on: https://go-review.googlesource.com/c/tools/+/185277 Run-TryBot: Suzy Mueller <suzmue@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Rebecca Stambler <rstambler@golang.org>
9 lines
137 B
Go
9 lines
137 B
Go
package testy
|
|
|
|
import "testing"
|
|
|
|
func TestSomething(t *testing.T) {
|
|
var x int //@rename("x", "testyX")
|
|
a() //@rename("a", "b")
|
|
}
|