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

Function append_idempotent

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

Source from the content-addressed store, hash-verified

344
345 #[test]
346 fn append_idempotent() {
347 let log = OriginOpLog::open_in_memory().unwrap();
348 log.append(&make_op("a", 10)).unwrap();
349 log.append(&make_op("a", 10)).unwrap(); // duplicate
350 assert_eq!(log.len().unwrap(), 1);
351 }
352
353 #[test]
354 fn scan_from_filters_below() {

Callers

nothing calls this directly

Calls 2

make_opFunction · 0.70
appendMethod · 0.45

Tested by

no test coverage detected