()
| 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() { |
nothing calls this directly
no test coverage detected