(t *testing.T)
| 38 | } |
| 39 | |
| 40 | func TestValidateBlock2Err(t *testing.T) { |
| 41 | b1 := newInitialBlock(t) |
| 42 | b2 := generate(t, b1) |
| 43 | transactionsRoot := bc.NewHash([32]byte{1}) |
| 44 | b2.TransactionsRoot = &transactionsRoot // make b2 be invalid |
| 45 | err := ValidateBlock(b2, b1, b2.ID, dummyValidateTx) |
| 46 | if err == nil { |
| 47 | t.Errorf("ValidateBlock(%v, %v) = nil, want error", b2, b1) |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | func TestValidateBlockSig2(t *testing.T) { |
| 52 | b1 := newInitialBlock(t) |
nothing calls this directly
no test coverage detected