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

Function tenant_isolation

nodedb/src/control/security/permission_tree/cache.rs:322–329  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

320
321 #[test]
322 fn tenant_isolation() {
323 let mut cache = PermissionCache::new();
324 cache.put_edge(1, "doc-1", "folder-1");
325 cache.put_edge(2, "doc-1", "folder-2");
326
327 assert_eq!(cache.get_parent(1, "doc-1"), Some("folder-1"));
328 assert_eq!(cache.get_parent(2, "doc-1"), Some("folder-2"));
329 }
330
331 #[test]
332 fn tree_def_registration() {

Callers

nothing calls this directly

Calls 1

put_edgeMethod · 0.80

Tested by

no test coverage detected