()
| 801 | |
| 802 | #[test] |
| 803 | fn test_parse_pre_tool_snake_case_alias() { |
| 804 | let hook = make_hook(); |
| 805 | let input = br#"{ |
| 806 | "taskId": "tool-2", |
| 807 | "pre_tool_use": {"tool": "read_file"} |
| 808 | }"#; |
| 809 | let event = hook.parse_event(HookType::PreToolUse, input).unwrap(); |
| 810 | assert_eq!(event.tool_name.as_deref(), Some("read_file")); |
| 811 | } |
| 812 | |
| 813 | #[test] |
| 814 | fn test_parse_pre_tool_minimal() { |
nothing calls this directly
no test coverage detected