From b7f6b22fb2d8e2f589ce9be34a1a711d7f4ed59a Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Mon, 12 Apr 2021 16:54:00 +0300 Subject: [PATCH] add test file Signed-off-by: Vasiliy Tolstov --- codec_test.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 codec_test.go diff --git a/codec_test.go b/codec_test.go new file mode 100644 index 0000000..6f3efa0 --- /dev/null +++ b/codec_test.go @@ -0,0 +1,18 @@ +package json + +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) + } +}