MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / append_and_len

Function append_and_len

nodedb/src/control/array_sync/op_log.rs:337–343  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

335
336 #[test]
337 fn append_and_len() {
338 let log = OriginOpLog::open_in_memory().unwrap();
339 assert_eq!(log.len().unwrap(), 0);
340 log.append(&make_op("a", 10)).unwrap();
341 log.append(&make_op("a", 20)).unwrap();
342 assert_eq!(log.len().unwrap(), 2);
343 }
344
345 #[test]
346 fn append_idempotent() {

Callers

nothing calls this directly

Calls 2

make_opFunction · 0.70
appendMethod · 0.45

Tested by

no test coverage detected