MCPcopy
hub / github.com/gofiber/fiber / Test_item_EncodeMsg_WriterErrors

Function Test_item_EncodeMsg_WriterErrors

middleware/cache/coverage_test.go:118–126  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

116}
117
118func Test_item_EncodeMsg_WriterErrors(t *testing.T) {
119 t.Parallel()
120
121 v := populatedItem()
122 full, err := v.MarshalMsg(nil)
123 require.NoError(t, err)
124
125 encodeMsgErrorSweep(t, len(full), v.EncodeMsg)
126}
127
128func Test_item_Decode_UnknownField(t *testing.T) {
129 t.Parallel()

Callers

nothing calls this directly

Calls 3

populatedItemFunction · 0.85
encodeMsgErrorSweepFunction · 0.85
MarshalMsgMethod · 0.45

Tested by

no test coverage detected