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

Source from the content-addressed store, hash-verified

540
541 #[test]
542 fn test_parse_event_empty_session_id() {
543 let hook = make_hook();
544 let input = br#"{"session_id": ""}"#;
545 let event = hook.parse_event(HookType::TurnStart, input).unwrap();
546 assert!(event.session_id.starts_with("kilo-"));
547 }
548
549 #[test]
550 fn test_parse_prompt_submit() {

Callers

nothing calls this directly

Calls 3

make_hookFunction · 0.70
unwrapMethod · 0.45
parse_eventMethod · 0.45

Tested by

no test coverage detected