Skip to content

Commit

Permalink
msgpack_test: Actually run the test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
Jille committed Oct 2, 2023
1 parent ecf8fa7 commit 1f7263d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion msgpack_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
Expand Down

0 comments on commit 1f7263d

Please sign in to comment.