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

Function test_parse_task_resume

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

Source from the content-addressed store, hash-verified

666
667 #[test]
668 fn test_parse_task_resume() {
669 let hook = make_hook();
670 let input = br#"{
671 "taskId": "resume-123",
672 "hookName": "TaskResume",
673 "taskResume": {"task": "Continue the API work"}
674 }"#;
675 let event = hook.parse_event(HookType::SessionStart, input).unwrap();
676 assert_eq!(event.session_id, "resume-123");
677 assert_eq!(event.event_type, HookType::SessionStart);
678 assert_eq!(event.prompt.as_deref(), Some("Continue the API work"));
679 }
680
681 // ── parse_event tests: task-complete (TurnEnd) ──────────────────
682

Callers

nothing calls this directly

Calls 3

make_hookFunction · 0.70
unwrapMethod · 0.45
parse_eventMethod · 0.45

Tested by

no test coverage detected