MCPcopy Index your code
hub / github.com/vmihailenco/msgpack / TestLargeBytes

Method TestLargeBytes

msgpack_test.go:58–66  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56}
57
58func (t *MsgpackTest) TestLargeBytes() {
59 N := int(1e6)
60
61 src := bytes.Repeat([]byte{'1'}, N)
62 t.Nil(t.enc.Encode(src))
63 var dst []byte
64 t.Nil(t.dec.Decode(&dst))
65 t.Equal(dst, src)
66}
67
68func (t *MsgpackTest) TestLargeString() {
69 N := int(1e6)

Callers

nothing calls this directly

Calls 2

EncodeMethod · 0.80
DecodeMethod · 0.80

Tested by

no test coverage detected