(t *testing.T)
| 19 | } |
| 20 | |
| 21 | func TestValidateBlock1Err(t *testing.T) { |
| 22 | b1 := newInitialBlock(t) |
| 23 | transactionsRoot := bc.NewHash([32]byte{1}) |
| 24 | b1.TransactionsRoot = &transactionsRoot // make b1 be invalid |
| 25 | err := ValidateBlock(b1, nil, b1.ID, dummyValidateTx) |
| 26 | if err == nil { |
| 27 | t.Errorf("ValidateBlock(%v, nil) = nil, want error", b1) |
| 28 | } |
| 29 | } |
| 30 | |
| 31 | func TestValidateBlock2(t *testing.T) { |
| 32 | b1 := newInitialBlock(t) |
nothing calls this directly
no test coverage detected