()
| 413 | |
| 414 | #[test] |
| 415 | fn commit_roundtrip() { |
| 416 | let records = vec![0; 128]; |
| 417 | let commit = Commit { |
| 418 | min_tx_offset: 0, |
| 419 | n: 3, |
| 420 | records, |
| 421 | epoch: Commit::DEFAULT_EPOCH, |
| 422 | }; |
| 423 | |
| 424 | let mut buf = Vec::with_capacity(commit.encoded_len()); |
| 425 | commit.write(&mut buf).unwrap(); |
| 426 | let commit2 = Commit::decode(&mut buf.as_slice()).unwrap().unwrap(); |
| 427 | |
| 428 | assert_eq!(commit, commit2); |
| 429 | } |
| 430 | |
| 431 | #[test] |
| 432 | fn into_transactions_can_skip_txs() { |
nothing calls this directly
no test coverage detected
searching dependent graphs…