MCPcopy
hub / github.com/tinylib/msgp / marshalErrorCtx

Function marshalErrorCtx

_generated/errorwrap_test.go:90–96  ·  view source on GitHub ↗
(m msgp.Marshaler)

Source from the content-addressed store, hash-verified

88}
89
90func marshalErrorCtx(m msgp.Marshaler) []byte {
91 bts, err := m.MarshalMsg(nil)
92 if err != nil {
93 panic(err)
94 }
95 return bts
96}
97
98// dodgifyMsgpString will wreck the nth string in the msgpack blob
99// so that it raises an error when decoded or unmarshaled.

Callers 4

TestErrorCtxAsMapDecodeFunction · 0.85

Calls 1

MarshalMsgMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…