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

Function test_parse_session_end

atomic-agent/src/hooks/sherpa.rs:470–480  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

468
469 #[test]
470 fn test_parse_session_end() {
471 let hook = make_hook();
472 let input = br#"{
473 "session_id": "rapid-wildflower-4475",
474 "cwd": "/Users/dev/hello-world",
475 "turn_number": 3
476 }"#;
477 let event = hook.parse_event(HookType::SessionEnd, input).unwrap();
478 assert_eq!(event.session_id, "rapid-wildflower-4475");
479 assert_eq!(event.event_type, HookType::SessionEnd);
480 }
481
482 // --- parse_event: turn-start carries intent_title as prompt ---
483

Callers

nothing calls this directly

Calls 3

make_hookFunction · 0.70
unwrapMethod · 0.45
parse_eventMethod · 0.45

Tested by

no test coverage detected