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

Function test_builtin_agents

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

Source from the content-addressed store, hash-verified

1177
1178 #[test]
1179 fn test_builtin_agents() {
1180 let agents = builtin_agents();
1181
1182 // Check we have expected agents
1183 let names: Vec<&str> = agents.iter().map(|a| a.name.as_str()).collect();
1184 assert!(names.contains(&"explore"));
1185 assert!(names.contains(&"general"));
1186 assert!(names.contains(&"plan"));
1187 assert!(names.contains(&"verification"));
1188 assert!(names.contains(&"review"));
1189
1190 // Check explore is read-only (has deny rules for write)
1191 let explore = agents.iter().find(|a| a.name == "explore").unwrap();
1192 assert!(!explore.permissions.deny.is_empty());
1193 }
1194
1195 // ========================================================================
1196 // Agent File Loading Tests

Callers

nothing calls this directly

Calls 2

builtin_agentsFunction · 0.85
as_strMethod · 0.45

Tested by

no test coverage detected