MCPcopy Create free account
hub / github.com/tendermint/tendermint / TestBlockMakePartSet

Function TestBlockMakePartSet

types/block_test.go:125–131  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

123}
124
125func TestBlockMakePartSet(t *testing.T) {
126 assert.Nil(t, (*Block)(nil).MakePartSet(2))
127
128 partSet := MakeBlock(int64(3), []Tx{Tx("Hello World")}, nil, nil).MakePartSet(1024)
129 assert.NotNil(t, partSet)
130 assert.EqualValues(t, 1, partSet.Total())
131}
132
133func TestBlockMakePartSetWithEvidence(t *testing.T) {
134 assert.Nil(t, (*Block)(nil).MakePartSet(2))

Callers

nothing calls this directly

Calls 4

MakePartSetMethod · 0.80
TotalMethod · 0.80
MakeBlockFunction · 0.70
TxTypeAlias · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…