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

Function overwrite_updates_value

nodedb/src/engine/sparse/doc_cache.rs:392–397  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

390
391 #[test]
392 fn overwrite_updates_value() {
393 let mut cache = DocCache::new(16);
394 cache.put(0, 1, "users", "u1", b"alice");
395 cache.put(0, 1, "users", "u1", b"ALICE");
396 assert_eq!(cache.get(0, 1, "users", "u1"), Some(b"ALICE".as_slice()));
397 }
398
399 #[test]
400 fn invalidate_removes_entry() {

Callers

nothing calls this directly

Calls 1

putMethod · 0.45

Tested by

no test coverage detected