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

Function test_skill_matcher_with_builder

core/src/hooks/matcher.rs:463–470  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

461
462 #[test]
463 fn test_skill_matcher_with_builder() {
464 let matcher = HookMatcher::new().with_skill("test-*");
465
466 assert_eq!(matcher.skill, Some("test-*".to_string()));
467
468 let event = make_skill_load_event("test-skill");
469 assert!(matcher.matches(&event));
470 }
471
472 #[test]
473 fn test_skill_matcher_serialization() {

Callers

nothing calls this directly

Calls 2

with_skillMethod · 0.80
make_skill_load_eventFunction · 0.70

Tested by

no test coverage detected