MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / into_transactions_can_skip_txs

Function into_transactions_can_skip_txs

crates/commitlog/src/commit.rs:432–460  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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]

Callers

nothing calls this directly

Calls 3

into_transactionsMethod · 0.80
enable_loggingFunction · 0.50
unwrapMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…