()
| 895 | |
| 896 | #[test] |
| 897 | fn test_parse_after_agent_turn_end() { |
| 898 | let hook = make_hook(); |
| 899 | let input = br#"{"session_id": "sess-123", "prompt": "Fix the bug", "prompt_response": "I fixed it"}"#; |
| 900 | let event = hook.parse_event(HookType::TurnEnd, input).unwrap(); |
| 901 | assert_eq!(event.session_id, "sess-123"); |
| 902 | assert_eq!(event.event_type, HookType::TurnEnd); |
| 903 | assert_eq!(event.prompt.as_deref(), Some("Fix the bug")); |
| 904 | } |
| 905 | |
| 906 | #[test] |
| 907 | fn test_parse_before_tool() { |
nothing calls this directly
no test coverage detected