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

Function traverse_transactions

crates/commitlog/src/commitlog.rs:1281–1288  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1279
1280 #[test]
1281 fn traverse_transactions() {
1282 let mut log = mem_log::<[u8; 32]>(32);
1283 let total_txs = fill_log(&mut log, 10, (1..=3).cycle()) as u64;
1284
1285 for (i, tx) in (0..total_txs).zip(log.transactions_from(0, &ArrayDecoder)) {
1286 assert_eq!(i, tx.unwrap().offset);
1287 }
1288 }
1289
1290 #[test]
1291 fn traverse_transactions_with_offset() {

Callers

nothing calls this directly

Calls 2

fill_logFunction · 0.50
transactions_fromMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…