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

Function test_parse_task_start_empty_task_id

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

Source from the content-addressed store, hash-verified

639
640 #[test]
641 fn test_parse_task_start_empty_task_id() {
642 let hook = make_hook();
643 let input = br#"{"taskId": ""}"#;
644 let event = hook.parse_event(HookType::SessionStart, input).unwrap();
645 assert!(event.session_id.starts_with("cline-"));
646 }
647
648 #[test]
649 fn test_parse_task_start_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