MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_parse_task_resume

Function test_parse_task_resume

atomic-agent/src/hooks/cline.rs:663–674  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

make_hookFunction · 0.70
unwrapMethod · 0.45
parse_eventMethod · 0.45

Tested by

no test coverage detected