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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

make_hookFunction · 0.70
unwrapMethod · 0.45
parse_eventMethod · 0.45

Tested by

no test coverage detected