()
| 575 | |
| 576 | #[test] |
| 577 | fn test_permission_manager_check_allow() { |
| 578 | let mut pm = PermissionManager::new(); |
| 579 | pm.set_global_policy(PermissionPolicy::new().allow("Bash(cargo:*)")); |
| 580 | |
| 581 | let decision = pm.check("s1", "Bash", &json!({"command": "cargo build"})); |
| 582 | assert_eq!(decision, PermissionDecision::Allow); |
| 583 | } |
| 584 | |
| 585 | #[test] |
| 586 | fn test_permission_manager_check_session_override() { |
nothing calls this directly
no test coverage detected