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

Function test_skill_matcher_non_skill_event

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

Source from the content-addressed store, hash-verified

452
453 #[test]
454 fn test_skill_matcher_non_skill_event() {
455 // Skill matcher should not match non-skill events
456 let matcher = HookMatcher::skill("my-skill");
457
458 let tool_event = make_pre_tool_event("s1", "Bash", serde_json::json!({}));
459 assert!(!matcher.matches(&tool_event));
460 }
461
462 #[test]
463 fn test_skill_matcher_with_builder() {

Callers

nothing calls this directly

Calls 1

make_pre_tool_eventFunction · 0.70

Tested by

no test coverage detected