17 lines
243 B
Go
17 lines
243 B
Go
package dinetrpc
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/davecgh/go-spew/spew"
|
|
)
|
|
|
|
func TestMarshalMsgpack(t *testing.T) {
|
|
msg := newTestMsg()
|
|
b, _ := MarshalMsgpack(msg.RequestMsg)
|
|
|
|
r := &RequestMsg{}
|
|
_ = UnmarshalMsgpack(b, r)
|
|
spew.Dump(r)
|
|
}
|