micro-codec-jsonpb/codec_test.go

20 lines
261 B
Go
Raw Normal View History

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)
}
}