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:644–649  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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