MCPcopy Create free account
hub / github.com/blobcache/blobcache / TestHeader

Function TestHeader

src/bcp/bcp_test.go:11–18  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

9)
10
11func TestHeader(t *testing.T) {
12 h := MessageHeader{}
13 h.SetCode(MT_OPEN_FROM)
14 h.SetBodyLen(10)
15
16 require.Equal(t, h.Code(), MT_OPEN_FROM)
17 require.Equal(t, h.BodyLen(), 10)
18}
19
20func TestMessageReadWrite(t *testing.T) {
21 m := Message{}

Callers

nothing calls this directly

Calls 4

SetCodeMethod · 0.95
SetBodyLenMethod · 0.95
CodeMethod · 0.95
BodyLenMethod · 0.95

Tested by

no test coverage detected