mirror of
https://github.com/goccy/go-yaml.git
synced 2025-10-31 21:31:06 +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
|
||||
}{Tags: []string{"hello-world"}, A: "foo"},
|
||||
},
|
||||
{
|
||||
"",
|
||||
(*struct{})(nil),
|
||||
},
|
||||
{
|
||||
"{}", struct{}{},
|
||||
},
|
||||
}
|
||||
for _, test := range tests {
|
||||
buf := bytes.NewBufferString(test.source)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue