add test file

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2021-04-12 16:58:55 +03:00
parent 76508814e7
commit 87e4e04634

19
codec_test.go Normal file
View File

@ -0,0 +1,19 @@
package jsonpb
import (
"bytes"
"testing"
)
func TestReadBody(t *testing.T) {
t.Skip("skip without proto message")
s := &struct {
Name string
}{}
c := NewCodec()
b := bytes.NewReader(nil)
err := c.ReadBody(b, s)
if err != nil {
t.Fatal(err)
}
}