mirror of
https://github.com/goccy/go-yaml.git
synced 2025-11-01 22:01:05 +00:00
Add decoder test case
This commit is contained in:
parent
cbede39300
commit
21e33cdcf6
1 changed files with 7 additions and 0 deletions
|
|
@ -286,6 +286,13 @@ func TestDecoder(t *testing.T) {
|
||||||
A string
|
A string
|
||||||
}{Tags: []string{"hello-world"}, A: "foo"},
|
}{Tags: []string{"hello-world"}, A: "foo"},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"",
|
||||||
|
(*struct{})(nil),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"{}", struct{}{},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
for _, test := range tests {
|
for _, test := range tests {
|
||||||
buf := bytes.NewBufferString(test.source)
|
buf := bytes.NewBufferString(test.source)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue