()
| 509 | |
| 510 | #[test] |
| 511 | fn test_parse_session_end() { |
| 512 | let hook = make_hook(); |
| 513 | let input = br#"{"session_id":"devin-123","reason":"user_closed"}"#; |
| 514 | let event = hook.parse_event(HookType::SessionEnd, input).unwrap(); |
| 515 | assert_eq!(event.session_id, "devin-123"); |
| 516 | assert_eq!(event.event_type, HookType::SessionEnd); |
| 517 | } |
| 518 | |
| 519 | #[test] |
| 520 | fn test_parse_prompt_submit() { |
nothing calls this directly
no test coverage detected