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

Function test_apply_to_skips_empty_permissions

core/src/subagent.rs:1783–1793  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1781
1782 #[test]
1783 fn test_apply_to_skips_empty_permissions() {
1784 use crate::agent::AgentConfig;
1785
1786 let def = AgentDefinition::new("empty", "No permissions");
1787 let mut config = AgentConfig::default();
1788
1789 def.apply_to(&mut config);
1790
1791 assert!(config.permission_checker.is_none());
1792 assert!(config.permission_policy.is_none());
1793 }
1794}

Callers

nothing calls this directly

Calls 1

apply_toMethod · 0.45

Tested by

no test coverage detected