(b *testing.B)
| 365 | } |
| 366 | |
| 367 | func BenchmarkTxInputWriteToFalse(b *testing.B) { |
| 368 | input := NewSpendInput(nil, bc.Hash{}, bc.AssetID{}, 0, 0, nil, bc.Hash{}, nil) |
| 369 | ew := errors.NewWriter(ioutil.Discard) |
| 370 | for i := 0; i < b.N; i++ { |
| 371 | input.writeTo(ew, serRequired) |
| 372 | } |
| 373 | } |
| 374 | |
| 375 | func BenchmarkTxOutputWriteToTrue(b *testing.B) { |
| 376 | output := NewTxOutput(bc.AssetID{}, 0, nil, nil) |
nothing calls this directly
no test coverage detected