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

Function test_parse_task_resume

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

make_hookFunction · 0.70
unwrapMethod · 0.45
parse_eventMethod · 0.45

Tested by

no test coverage detected