micro-codec-yaml/yaml_test.go
Vasiliy Tolstov d274240d1d dont fail empty payload
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-04-12 16:52:10 +03:00

19 lines
221 B
Go

package yaml
import (
"bytes"
"testing"
)
func TestReadBody(t *testing.T) {
s := &struct {
Name string
}{}
c := NewCodec()
b := bytes.NewReader(nil)
err := c.ReadBody(b, s)
if err != nil {
t.Fatal(err)
}
}