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

Function test_parse_task_complete

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

Source from the content-addressed store, hash-verified

677
678 #[test]
679 fn test_parse_task_complete() {
680 let hook = make_hook();
681 let input = br#"{
682 "taskId": "done-456",
683 "hookName": "TaskComplete",
684 "taskComplete": {"task": "Authentication implemented"}
685 }"#;
686 let event = hook.parse_event(HookType::TurnEnd, input).unwrap();
687 assert_eq!(event.session_id, "done-456");
688 assert_eq!(event.event_type, HookType::TurnEnd);
689 assert_eq!(event.prompt.as_deref(), Some("Authentication implemented"));
690 }
691
692 #[test]
693 fn test_parse_task_complete_no_nested_data() {

Callers

nothing calls this directly

Calls 3

make_hookFunction · 0.70
unwrapMethod · 0.45
parse_eventMethod · 0.45

Tested by

no test coverage detected