test: add for struct_tags

This commit is contained in:
Smirnov Olexander 2022-06-07 23:10:33 +03:00
parent 04e1af228b
commit 149e89eab4
5 changed files with 100 additions and 0 deletions

11
spec/fixtures/tags/add_input.go vendored Normal file
View file

@ -0,0 +1,11 @@
package main
type Test struct {
ID int
Name string
Num int64
Another struct {
First int
Second string
}
}

11
spec/fixtures/tags/add_output.go vendored Normal file
View file

@ -0,0 +1,11 @@
package main
type Test struct {
ID int `json:"id"`
Name string `json:"name"`
Num int64 `json:"num"`
Another struct {
First int `json:"first"`
Second string `json:"second"`
} `json:"another"`
}

11
spec/fixtures/tags/remove_input.go vendored Normal file
View file

@ -0,0 +1,11 @@
package main
type Test struct {
ID int `json:"id"`
Name string `json:"name"`
Num int64 `json:"num"`
Another struct {
First int `json:"first"`
Second string `json:"second"`
} `json:"another"`
}

11
spec/fixtures/tags/remove_output.go vendored Normal file
View file

@ -0,0 +1,11 @@
package main
type Test struct {
ID int
Name string
Num int64
Another struct {
First int
Second string
}
}