add test file

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2021-04-12 17:15:45 +03:00
parent e94afcc70a
commit adbd069875
2 changed files with 37 additions and 0 deletions

19
proto/codec_test.go Normal file
View File

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