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

Function test_parse_session_end

atomic-agent/src/hooks/gemini_cli.rs:877–884  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

875
876 #[test]
877 fn test_parse_session_end() {
878 let hook = make_hook();
879 let input =
880 br#"{"session_id": "sess-123", "transcript_path": "/tmp/t.json", "reason": "exit"}"#;
881 let event = hook.parse_event(HookType::SessionEnd, input).unwrap();
882 assert_eq!(event.session_id, "sess-123");
883 assert_eq!(event.event_type, HookType::SessionEnd);
884 }
885
886 #[test]
887 fn test_parse_before_agent_turn_start() {

Callers

nothing calls this directly

Calls 3

make_hookFunction · 0.70
unwrapMethod · 0.45
parse_eventMethod · 0.45

Tested by

no test coverage detected