()
| 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() { |
nothing calls this directly
no test coverage detected