(t *testing.T)
| 175 | } |
| 176 | |
| 177 | func TestBlockString(t *testing.T) { |
| 178 | assert.Equal(t, "nil-Block", (*Block)(nil).String()) |
| 179 | assert.Equal(t, "nil-Block", (*Block)(nil).StringIndented("")) |
| 180 | assert.Equal(t, "nil-Block", (*Block)(nil).StringShort()) |
| 181 | |
| 182 | block := MakeBlock(int64(3), []Tx{Tx("Hello World")}, nil, nil) |
| 183 | assert.NotEqual(t, "nil-Block", block.String()) |
| 184 | assert.NotEqual(t, "nil-Block", block.StringIndented("")) |
| 185 | assert.NotEqual(t, "nil-Block", block.StringShort()) |
| 186 | } |
| 187 | |
| 188 | func makeBlockIDRandom() BlockID { |
| 189 | var ( |
nothing calls this directly
no test coverage detected
searching dependent graphs…