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

Function create_custom_role

nodedb/src/control/security/role.rs:407–413  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

405
406 #[test]
407 fn create_custom_role() {
408 let store = RoleStore::new();
409 store
410 .create_role("analyst", TenantId::new(1), None, None)
411 .unwrap();
412 assert!(store.get_role("analyst").is_some());
413 }
414
415 #[test]
416 fn create_with_builtin_parent() {

Callers

nothing calls this directly

Calls 1

create_roleMethod · 0.80

Tested by

no test coverage detected