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

Function test_skill_matcher

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

Source from the content-addressed store, hash-verified

416
417 #[test]
418 fn test_skill_matcher() {
419 let matcher = HookMatcher::skill("my-skill");
420
421 let matching_event = make_skill_load_event("my-skill");
422 let non_matching_event = make_skill_load_event("other-skill");
423
424 assert!(matcher.matches(&matching_event));
425 assert!(!matcher.matches(&non_matching_event));
426 }
427
428 #[test]
429 fn test_skill_matcher_pattern() {

Callers

nothing calls this directly

Calls 1

make_skill_load_eventFunction · 0.70

Tested by

no test coverage detected