()
| 929 | |
| 930 | #[test] |
| 931 | fn test_parse_after_agent_turn_end() { |
| 932 | let hook = make_hook(); |
| 933 | let input = br#"{"session_id": "sess-123", "prompt": "Fix the bug", "prompt_response": "I fixed it"}"#; |
| 934 | let event = hook.parse_event(HookType::TurnEnd, input).unwrap(); |
| 935 | assert_eq!(event.session_id, "sess-123"); |
| 936 | assert_eq!(event.event_type, HookType::TurnEnd); |
| 937 | assert_eq!(event.prompt.as_deref(), Some("Fix the bug")); |
| 938 | } |
| 939 | |
| 940 | #[test] |
| 941 | fn test_parse_before_tool() { |
nothing calls this directly
no test coverage detected