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

Function reject_duplicate

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

Source from the content-addressed store, hash-verified

446
447 #[test]
448 fn reject_duplicate() {
449 let store = RoleStore::new();
450 store
451 .create_role("analyst", TenantId::new(1), None, None)
452 .unwrap();
453 assert!(
454 store
455 .create_role("analyst", TenantId::new(1), None, None)
456 .is_err()
457 );
458 }
459
460 #[test]
461 fn reject_nonexistent_parent() {

Callers

nothing calls this directly

Calls 1

create_roleMethod · 0.80

Tested by

no test coverage detected