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

Function test_parse_task_start_no_nested_data

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

Source from the content-addressed store, hash-verified

647
648 #[test]
649 fn test_parse_task_start_no_nested_data() {
650 let hook = make_hook();
651 let input = br#"{"taskId": "t1"}"#;
652 let event = hook.parse_event(HookType::SessionStart, input).unwrap();
653 assert_eq!(event.session_id, "t1");
654 assert!(event.prompt.is_none());
655 }
656
657 // ── parse_event tests: task-resume (SessionStart) ───────────────
658

Callers

nothing calls this directly

Calls 3

make_hookFunction · 0.70
unwrapMethod · 0.45
parse_eventMethod · 0.45

Tested by

no test coverage detected