.gitignore added
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / golang.org / x / tools@v0.1.1-0.20210319172145-bda8f5cee399 / internal / lsp / testdata / rename / testy / testy_test.go.golden
diff --git a/.config/coc/extensions/coc-go-data/tools/pkg/mod/golang.org/x/tools@v0.1.1-0.20210319172145-bda8f5cee399/internal/lsp/testdata/rename/testy/testy_test.go.golden b/.config/coc/extensions/coc-go-data/tools/pkg/mod/golang.org/x/tools@v0.1.1-0.20210319172145-bda8f5cee399/internal/lsp/testdata/rename/testy/testy_test.go.golden
new file mode 100644 (file)
index 0000000..480c8e9
--- /dev/null
@@ -0,0 +1,30 @@
+-- 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")
+}
+