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:911–918  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

909
910 #[test]
911 fn test_parse_session_end() {
912 let hook = make_hook();
913 let input =
914 br#"{"session_id": "sess-123", "transcript_path": "/tmp/t.json", "reason": "exit"}"#;
915 let event = hook.parse_event(HookType::SessionEnd, input).unwrap();
916 assert_eq!(event.session_id, "sess-123");
917 assert_eq!(event.event_type, HookType::SessionEnd);
918 }
919
920 #[test]
921 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