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

Function test_parse_task_complete

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

Source from the content-addressed store, hash-verified

682
683 #[test]
684 fn test_parse_task_complete() {
685 let hook = make_hook();
686 let input = br#"{
687 "taskId": "done-456",
688 "hookName": "TaskComplete",
689 "taskComplete": {"task": "Authentication implemented"}
690 }"#;
691 let event = hook.parse_event(HookType::TurnEnd, input).unwrap();
692 assert_eq!(event.session_id, "done-456");
693 assert_eq!(event.event_type, HookType::TurnEnd);
694 assert_eq!(event.prompt.as_deref(), Some("Authentication implemented"));
695 }
696
697 #[test]
698 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