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

Function test_command_pattern_not_bash

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

Source from the content-addressed store, hash-verified

354
355 #[test]
356 fn test_command_pattern_not_bash() {
357 // Command pattern should only apply to Bash tool
358 let matcher = HookMatcher::command("echo");
359
360 let read_event = make_pre_tool_event("s1", "Read", serde_json::json!({"path": "echo.txt"}));
361
362 assert!(!matcher.matches(&read_event));
363 }
364
365 #[test]
366 fn test_builder_pattern() {

Callers

nothing calls this directly

Calls 1

make_pre_tool_eventFunction · 0.70

Tested by

no test coverage detected