()
| 873 | |
| 874 | #[test] |
| 875 | fn test_fork_preserves_validator() { |
| 876 | use crate::skills::validator::DefaultSkillValidator; |
| 877 | |
| 878 | let original = SkillRegistry::new(); |
| 879 | original.set_validator(Arc::new(DefaultSkillValidator::default())); |
| 880 | |
| 881 | let fork = original.fork(); |
| 882 | let invalid = Arc::new(Skill { |
| 883 | name: "BadName".to_string(), |
| 884 | description: "invalid".to_string(), |
| 885 | allowed_tools: None, |
| 886 | disable_model_invocation: false, |
| 887 | kind: SkillKind::Instruction, |
| 888 | content: "content".to_string(), |
| 889 | tags: vec![], |
| 890 | version: None, |
| 891 | }); |
| 892 | |
| 893 | assert!(fork.register(invalid).is_err()); |
| 894 | } |
| 895 | |
| 896 | #[test] |
| 897 | fn test_search_skills_ranks_matches() { |
nothing calls this directly
no test coverage detected