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

Function test_parse_task_complete

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

Source from the content-addressed store, hash-verified

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