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

Function test_parse_event_missing_session_id

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

Source from the content-addressed store, hash-verified

555
556 #[test]
557 fn test_parse_event_missing_session_id() {
558 let hook = make_hook();
559 let input = br#"{"cwd": "/tmp"}"#;
560 let event = hook.parse_event(HookType::TurnStart, input).unwrap();
561 // Should generate a fallback session ID
562 assert!(event.session_id.starts_with("kiro-"));
563 }
564
565 // --- parse_event: empty session_id generates fallback ---
566

Callers

nothing calls this directly

Calls 3

make_hookFunction · 0.70
unwrapMethod · 0.45
parse_eventMethod · 0.45

Tested by

no test coverage detected