(b *testing.B)
| 357 | } |
| 358 | |
| 359 | func BenchmarkTxInputWriteToTrue(b *testing.B) { |
| 360 | input := NewSpendInput(nil, bc.Hash{}, bc.AssetID{}, 0, 0, nil, bc.Hash{}, nil) |
| 361 | ew := errors.NewWriter(ioutil.Discard) |
| 362 | for i := 0; i < b.N; i++ { |
| 363 | input.writeTo(ew, 0) |
| 364 | } |
| 365 | } |
| 366 | |
| 367 | func BenchmarkTxInputWriteToFalse(b *testing.B) { |
| 368 | input := NewSpendInput(nil, bc.Hash{}, bc.AssetID{}, 0, 0, nil, bc.Hash{}, nil) |
nothing calls this directly
no test coverage detected