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

Function put_overwrites

nodedb/src/engine/sparse/btree.rs:459–467  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

457
458 #[test]
459 fn put_overwrites() {
460 let (engine, _dir) = open_temp();
461 engine.put(1, "users", "u1", b"alice").unwrap();
462 engine.put(1, "users", "u1", b"ALICE").unwrap();
463 assert_eq!(
464 engine.get(1, "users", "u1").unwrap(),
465 Some(b"ALICE".to_vec())
466 );
467 }
468
469 #[test]
470 fn delete_removes() {

Callers

nothing calls this directly

Calls 2

open_tempFunction · 0.70
putMethod · 0.45

Tested by

no test coverage detected