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

Function incr_new_key

nodedb/src/engine/kv/engine_atomic.rs:482–486  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

480
481 #[test]
482 fn incr_new_key() {
483 let mut engine = make_engine();
484 let result = engine.incr(1, "counters", b"hits", 10, 0, 1000);
485 assert_eq!(result.unwrap(), 10);
486 }
487
488 #[test]
489 fn incr_existing_key() {

Callers

nothing calls this directly

Calls 2

incrMethod · 0.80
make_engineFunction · 0.70

Tested by

no test coverage detected