()
| 430 | |
| 431 | #[test] |
| 432 | fn into_transactions_can_skip_txs() { |
| 433 | enable_logging(); |
| 434 | |
| 435 | let commit = Commit { |
| 436 | min_tx_offset: 0, |
| 437 | n: 4, |
| 438 | records: vec![0; 128], |
| 439 | epoch: Commit::DEFAULT_EPOCH, |
| 440 | }; |
| 441 | |
| 442 | let txs = commit |
| 443 | .into_transactions(DEFAULT_LOG_FORMAT_VERSION, 2, &ArrayDecoder::<32>) |
| 444 | .collect::<Result<Vec<_>, _>>() |
| 445 | .unwrap(); |
| 446 | |
| 447 | assert_eq!( |
| 448 | txs, |
| 449 | vec![ |
| 450 | Transaction { |
| 451 | offset: 2, |
| 452 | txdata: [0u8; 32] |
| 453 | }, |
| 454 | Transaction { |
| 455 | offset: 3, |
| 456 | txdata: [0; 32] |
| 457 | } |
| 458 | ] |
| 459 | ) |
| 460 | } |
| 461 | |
| 462 | proptest! { |
| 463 | #[test] |
nothing calls this directly
no test coverage detected
searching dependent graphs…