()
| 661 | |
| 662 | #[test] |
| 663 | fn test_parse_task_resume() { |
| 664 | let hook = make_hook(); |
| 665 | let input = br#"{ |
| 666 | "taskId": "resume-123", |
| 667 | "hookName": "TaskResume", |
| 668 | "taskResume": {"task": "Continue the API work"} |
| 669 | }"#; |
| 670 | let event = hook.parse_event(HookType::SessionStart, input).unwrap(); |
| 671 | assert_eq!(event.session_id, "resume-123"); |
| 672 | assert_eq!(event.event_type, HookType::SessionStart); |
| 673 | assert_eq!(event.prompt.as_deref(), Some("Continue the API work")); |
| 674 | } |
| 675 | |
| 676 | // ── parse_event tests: task-complete (TurnEnd) ────────────────── |
| 677 |
nothing calls this directly
no test coverage detected