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

Function test_empty_matcher_matches_all

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

Source from the content-addressed store, hash-verified

256
257 #[test]
258 fn test_empty_matcher_matches_all() {
259 let matcher = HookMatcher::new();
260 let event = make_pre_tool_event("s1", "Bash", serde_json::json!({}));
261 assert!(matcher.matches(&event));
262 }
263
264 #[test]
265 fn test_tool_matcher() {

Callers

nothing calls this directly

Calls 1

make_pre_tool_eventFunction · 0.70

Tested by

no test coverage detected