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

Function test_parse_session_end

atomic-agent/src/hooks/grok.rs:496–502  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

494
495 #[test]
496 fn test_parse_session_end() {
497 let hook = make_hook();
498 let input = br#"{"sessionId": "abc-123", "reason": "shutdown"}"#;
499 let event = hook.parse_event(HookType::SessionEnd, input).unwrap();
500 assert_eq!(event.session_id, "abc-123");
501 assert_eq!(event.event_type, HookType::SessionEnd);
502 }
503
504 #[test]
505 fn test_parse_user_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