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/kilo.rs:536–542  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

534
535 #[test]
536 fn test_parse_event_missing_session_id() {
537 let hook = make_hook();
538 let input = br#"{"cwd": "/tmp"}"#;
539 let event = hook.parse_event(HookType::TurnStart, input).unwrap();
540 // Should generate a fallback session ID
541 assert!(event.session_id.starts_with("kilo-"));
542 }
543
544 #[test]
545 fn test_parse_event_empty_session_id() {

Callers

nothing calls this directly

Calls 3

make_hookFunction · 0.70
unwrapMethod · 0.45
parse_eventMethod · 0.45

Tested by

no test coverage detected