1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
  
     | 
    
      
-- flags --
-ignore_extra_diags
-- testy.go --
package testy
type tt int //@rename("tt", "testyType", ttTotestyType)
func a() {
	foo := 42 //@rename("foo", "bar", fooTobar)
}
-- testy_test.go --
package testy
import "testing"
func TestSomething(t *testing.T) {
	var x int //@rename("x", "testyX", xTotestyX)
	a()       //@rename("a", "b", aTob)
}
-- @aTob/testy.go --
@@ -5 +5 @@
-func a() {
+func b() {
-- @aTob/testy_test.go --
@@ -7 +7 @@
-	a()       //@rename("a", "b", aTob)
+	b()       //@rename("a", "b", aTob)
-- @fooTobar/testy.go --
@@ -6 +6 @@
-	foo := 42 //@rename("foo", "bar", fooTobar)
+	bar := 42 //@rename("foo", "bar", fooTobar)
-- @ttTotestyType/testy.go --
@@ -3 +3 @@
-type tt int //@rename("tt", "testyType", ttTotestyType)
+type testyType int //@rename("tt", "testyType", ttTotestyType)
-- @xTotestyX/testy_test.go --
@@ -6 +6 @@
-	var x int //@rename("x", "testyX", xTotestyX)
+	var testyX int //@rename("x", "testyX", xTotestyX)
 
     |