Giant blob of minor changes
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / golang.org / x / tools@v0.0.0-20201105173854-bc9fc8d8c4bc / internal / lsp / testdata / extract / extract_function / extract_return_init.go.golden
diff --git a/.config/coc/extensions/coc-go-data/tools/pkg/mod/golang.org/x/tools@v0.0.0-20201105173854-bc9fc8d8c4bc/internal/lsp/testdata/extract/extract_function/extract_return_init.go.golden b/.config/coc/extensions/coc-go-data/tools/pkg/mod/golang.org/x/tools@v0.0.0-20201105173854-bc9fc8d8c4bc/internal/lsp/testdata/extract/extract_function/extract_return_init.go.golden
new file mode 100644 (file)
index 0000000..40a9773
--- /dev/null
@@ -0,0 +1,22 @@
+-- functionextraction_extract_return_init_5_2 --
+package extract
+
+func _() string {
+       x := 1
+       cond0, ret0 := fn0(x)
+       if cond0 {
+               return ret0
+       } //@mark(exEn5, "}")
+       x = 2
+       return "b"
+       //@extractfunc(exSt5, exEn5)
+}
+
+func fn0(x int) (bool, string) {
+       if x == 0 {
+               x = 3
+               return true, "a"
+       }
+       return false, ""
+}
+