()
| 840 | |
| 841 | #[test] |
| 842 | fn test_fork_is_independent() { |
| 843 | let original = SkillRegistry::with_builtins(); |
| 844 | let fork = original.fork(); |
| 845 | |
| 846 | // Fork has same skills as original |
| 847 | assert_eq!(fork.len(), original.len()); |
| 848 | |
| 849 | // Adding to fork does not affect original |
| 850 | fork.register_unchecked(Arc::new(Skill { |
| 851 | name: "session-only".to_string(), |
| 852 | description: "Only in fork".to_string(), |
| 853 | allowed_tools: None, |
| 854 | disable_model_invocation: false, |
| 855 | kind: SkillKind::Instruction, |
| 856 | content: "content".to_string(), |
| 857 | tags: vec![], |
| 858 | version: None, |
| 859 | })); |
| 860 | |
| 861 | assert_eq!(fork.len(), original.len() + 1); |
| 862 | assert!(fork.get("session-only").is_some()); |
| 863 | assert!(original.get("session-only").is_none()); |
| 864 | } |
| 865 | |
| 866 | #[test] |
| 867 | fn test_fork_inherits_builtins() { |
nothing calls this directly
no test coverage detected