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

Function test_parse_event_empty_session_id

atomic-agent/src/hooks/kiro.rs:565–570  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

563
564 #[test]
565 fn test_parse_event_empty_session_id() {
566 let hook = make_hook();
567 let input = br#"{"session_id": ""}"#;
568 let event = hook.parse_event(HookType::TurnStart, input).unwrap();
569 assert!(event.session_id.starts_with("kiro-"));
570 }
571
572 // --- parse_event: prompt-submit (TurnStart) ---
573

Callers

nothing calls this directly

Calls 3

make_hookFunction · 0.70
unwrapMethod · 0.45
parse_eventMethod · 0.45

Tested by

no test coverage detected