MCPcopy Create free account
hub / github.com/AI45Lab/Code / test_permission_manager_set_global_policy

Function test_permission_manager_set_global_policy

core/src/permissions/tests.rs:536–541  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

534
535#[test]
536fn 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]
544fn test_permission_manager_session_policy() {

Callers

nothing calls this directly

Calls 2

allowMethod · 0.80
set_global_policyMethod · 0.80

Tested by

no test coverage detected