From 1f7263d92fa3fc14d152976e589561beeab926e0 Mon Sep 17 00:00:00 2001 From: Jille Timmermans Date: Mon, 2 Oct 2023 09:36:26 +0200 Subject: [PATCH] msgpack_test: Actually run the test suite --- msgpack_test.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/msgpack_test.go b/msgpack_test.go index 21a1cf6..2beb768 100644 --- a/msgpack_test.go +++ b/msgpack_test.go @@ -26,12 +26,16 @@ type MsgpackTest struct { dec *msgpack.Decoder } -func (t *MsgpackTest) SetUpTest() { +func (t *MsgpackTest) SetupTest() { t.buf = &bytes.Buffer{} t.enc = msgpack.NewEncoder(t.buf) t.dec = msgpack.NewDecoder(bufio.NewReader(t.buf)) } +func TestMsgpackTestSuite(t *testing.T) { + suite.Run(t, new(MsgpackTest)) +} + func (t *MsgpackTest) TestDecodeNil() { t.NotNil(t.dec.Decode(nil)) }