From 524145944a0c323e48cd0c62ea14761c1af44364 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Mon, 12 Apr 2021 17:13:42 +0300 Subject: [PATCH] add test file Signed-off-by: Vasiliy Tolstov --- codec_test.go | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 codec_test.go diff --git a/codec_test.go b/codec_test.go new file mode 100644 index 0000000..9fa7392 --- /dev/null +++ b/codec_test.go @@ -0,0 +1,19 @@ +package proto + +import ( + "bytes" + "testing" +) + +func TestReadBody(t *testing.T) { + t.Skip("skip as no proto") + s := &struct { + Name string + }{} + c := NewCodec() + b := bytes.NewReader(nil) + err := c.ReadBody(b, s) + if err != nil { + t.Fatal(err) + } +}