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

Function test_skill_matcher_pattern

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

Source from the content-addressed store, hash-verified

427
428 #[test]
429 fn test_skill_matcher_pattern() {
430 // Test glob pattern matching for skill names
431 let matcher = HookMatcher::skill("test-*");
432
433 let test_skill = make_skill_load_event("test-skill");
434 let test_other = make_skill_load_event("test-other");
435 let no_match = make_skill_load_event("other-skill");
436
437 assert!(matcher.matches(&test_skill));
438 assert!(matcher.matches(&test_other));
439 assert!(!matcher.matches(&no_match));
440 }
441
442 #[test]
443 fn test_skill_matcher_unload_event() {

Callers

nothing calls this directly

Calls 1

make_skill_load_eventFunction · 0.70

Tested by

no test coverage detected