()
| 558 | |
| 559 | #[test] |
| 560 | fn test_parse_post_tool_command() { |
| 561 | let hook = make_hook(); |
| 562 | let input = br#"{"session_id":"devin-123","action":"command","command":"cargo test"}"#; |
| 563 | let event = hook.parse_event(HookType::PostToolUse, input).unwrap(); |
| 564 | assert_eq!(event.tool_name.as_deref(), Some("command")); |
| 565 | } |
| 566 | |
| 567 | #[test] |
| 568 | fn test_parse_event_empty_input() { |
nothing calls this directly
no test coverage detected