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

Function test_parse_allowed_tools

core/src/skills/mod.rs:324–338  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

322
323 #[test]
324 fn test_parse_allowed_tools() {
325 let skill = Skill {
326 name: "test".to_string(),
327 description: "test".to_string(),
328 allowed_tools: Some("read(*), grep(*), Bash(gh:*)".to_string()),
329 disable_model_invocation: false,
330 kind: SkillKind::Instruction,
331 content: String::new(),
332 tags: Vec::new(),
333 version: None,
334 };
335
336 let permissions = skill.parse_allowed_tools();
337 assert_eq!(permissions.len(), 3);
338 }
339
340 #[test]
341 fn test_parse_legacy_whitespace_allowed_tools() {

Callers

nothing calls this directly

Calls 1

parse_allowed_toolsMethod · 0.80

Tested by

no test coverage detected