()
| 534 | |
| 535 | #[test] |
| 536 | fn test_permission_manager_set_global_policy() { |
| 537 | let mut pm = PermissionManager::new(); |
| 538 | let policy = PermissionPolicy::new().allow("Bash(*)"); |
| 539 | pm.set_global_policy(policy); |
| 540 | assert_eq!(pm.global_policy().allow.len(), 1); |
| 541 | } |
| 542 | |
| 543 | #[test] |
| 544 | fn test_permission_manager_session_policy() { |
nothing calls this directly
no test coverage detected