()
| 1227 | // PreToolUse passthrough (not a Cursor event, but handled gracefully) |
| 1228 | #[test] |
| 1229 | fn test_parse_pre_tool_use_passthrough() { |
| 1230 | let hook = make_hook(); |
| 1231 | let input = br#"{"conversation_id": "c1"}"#; |
| 1232 | let event = hook.parse_event(HookType::PreToolUse, input).unwrap(); |
| 1233 | assert_eq!(event.session_id, "c1"); |
| 1234 | assert_eq!(event.event_type, HookType::PreToolUse); |
| 1235 | } |
| 1236 | |
| 1237 | // Conversation ID stability across hook types |
| 1238 |
nothing calls this directly
no test coverage detected