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

Function test_parse_session_end

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

Source from the content-addressed store, hash-verified

562
563 #[test]
564 fn test_parse_session_end() {
565 let hook = make_hook();
566 let input = br#"{
567 "session_id": "rapid-wildflower-4475",
568 "cwd": "/Users/dev/hello-world",
569 "turn_number": 3
570 }"#;
571 let event = hook.parse_event(HookType::SessionEnd, input).unwrap();
572 assert_eq!(event.session_id, "rapid-wildflower-4475");
573 assert_eq!(event.event_type, HookType::SessionEnd);
574 }
575
576 // --- parse_event: turn-start carries intent_title as prompt ---
577

Callers

nothing calls this directly

Calls 3

make_hookFunction · 0.70
unwrapMethod · 0.45
parse_eventMethod · 0.45

Tested by

no test coverage detected