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