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

Function Test_item_MarshalUnmarshal_Populated

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

Source from the content-addressed store, hash-verified

69}
70
71func Test_item_MarshalUnmarshal_Populated(t *testing.T) {
72 t.Parallel()
73
74 v := populatedItem()
75 bts, err := v.MarshalMsg(nil)
76 require.NoError(t, err)
77
78 var out item
79 left, err := out.UnmarshalMsg(bts)
80 require.NoError(t, err)
81 require.Empty(t, left)
82 require.Equal(t, v, out)
83}
84
85func Test_item_EncodeDecode_Populated(t *testing.T) {
86 t.Parallel()

Callers

nothing calls this directly

Calls 3

UnmarshalMsgMethod · 0.95
populatedItemFunction · 0.85
MarshalMsgMethod · 0.45

Tested by

no test coverage detected