.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 / fillstruct / fill_struct.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/fillstruct/fill_struct.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/fillstruct/fill_struct.go.golden
new file mode 100644 (file)
index 0000000..8d99703
--- /dev/null
@@ -0,0 +1,124 @@
+-- suggestedfix_fill_struct_20_15 --
+package fillstruct
+
+type StructA struct {
+       unexportedIntField int
+       ExportedIntField   int
+       MapA               map[int]string
+       Array              []int
+       StructB
+}
+
+type StructA2 struct {
+       B *StructB
+}
+
+type StructA3 struct {
+       B StructB
+}
+
+func fill() {
+       a := StructA{
+               unexportedIntField: 0,
+               ExportedIntField:   0,
+               MapA:               map[int]string{},
+               Array:              []int{},
+               StructB:            StructB{},
+       }  //@suggestedfix("}", "refactor.rewrite")
+       b := StructA2{} //@suggestedfix("}", "refactor.rewrite")
+       c := StructA3{} //@suggestedfix("}", "refactor.rewrite")
+       if true {
+               _ = StructA3{} //@suggestedfix("}", "refactor.rewrite")
+       }
+}
+
+-- suggestedfix_fill_struct_21_16 --
+package fillstruct
+
+type StructA struct {
+       unexportedIntField int
+       ExportedIntField   int
+       MapA               map[int]string
+       Array              []int
+       StructB
+}
+
+type StructA2 struct {
+       B *StructB
+}
+
+type StructA3 struct {
+       B StructB
+}
+
+func fill() {
+       a := StructA{}  //@suggestedfix("}", "refactor.rewrite")
+       b := StructA2{
+               B: &StructB{},
+       } //@suggestedfix("}", "refactor.rewrite")
+       c := StructA3{} //@suggestedfix("}", "refactor.rewrite")
+       if true {
+               _ = StructA3{} //@suggestedfix("}", "refactor.rewrite")
+       }
+}
+
+-- suggestedfix_fill_struct_22_16 --
+package fillstruct
+
+type StructA struct {
+       unexportedIntField int
+       ExportedIntField   int
+       MapA               map[int]string
+       Array              []int
+       StructB
+}
+
+type StructA2 struct {
+       B *StructB
+}
+
+type StructA3 struct {
+       B StructB
+}
+
+func fill() {
+       a := StructA{}  //@suggestedfix("}", "refactor.rewrite")
+       b := StructA2{} //@suggestedfix("}", "refactor.rewrite")
+       c := StructA3{
+               B: StructB{},
+       } //@suggestedfix("}", "refactor.rewrite")
+       if true {
+               _ = StructA3{} //@suggestedfix("}", "refactor.rewrite")
+       }
+}
+
+-- suggestedfix_fill_struct_24_16 --
+package fillstruct
+
+type StructA struct {
+       unexportedIntField int
+       ExportedIntField   int
+       MapA               map[int]string
+       Array              []int
+       StructB
+}
+
+type StructA2 struct {
+       B *StructB
+}
+
+type StructA3 struct {
+       B StructB
+}
+
+func fill() {
+       a := StructA{}  //@suggestedfix("}", "refactor.rewrite")
+       b := StructA2{} //@suggestedfix("}", "refactor.rewrite")
+       c := StructA3{} //@suggestedfix("}", "refactor.rewrite")
+       if true {
+               _ = StructA3{
+                       B: StructB{},
+               } //@suggestedfix("}", "refactor.rewrite")
+       }
+}
+