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

Function tenant_isolation

nodedb/src/engine/kv/engine.rs:480–489  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

478
479 #[test]
480 fn tenant_isolation() {
481 let mut e = make_engine();
482 let n = now();
483
484 e.put(1, "c", b"k", b"t1", 0, n, Surrogate::ZERO);
485 e.put(2, "c", b"k", b"t2", 0, n, Surrogate::ZERO);
486
487 assert_eq!(e.get(1, "c", b"k", n).unwrap(), b"t1");
488 assert_eq!(e.get(2, "c", b"k", n).unwrap(), b"t2");
489 }
490
491 #[test]
492 fn stats() {

Callers

nothing calls this directly

Calls 3

nowFunction · 0.85
make_engineFunction · 0.70
putMethod · 0.45

Tested by

no test coverage detected