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

Function reset_hard

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

Source from the content-addressed store, hash-verified

1314
1315 #[test]
1316 fn reset_hard() {
1317 let mut log = mem_log::<[u8; 32]>(128);
1318 fill_log(&mut log, 50, (1..=10).cycle());
1319
1320 log = log.reset().unwrap();
1321 assert_eq!(0, log.transactions_from(0, &ArrayDecoder).count());
1322 }
1323
1324 #[test]
1325 fn reset_to_offset() {

Callers

nothing calls this directly

Calls 3

fill_logFunction · 0.50
unwrapMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…