add test file

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2021-04-12 17:16:09 +03:00
parent 1307e2b50f
commit ff29bac9f3

18
codec_test.go Normal file
View File

@ -0,0 +1,18 @@
package toml
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)
}
}