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

Function test_parse_session_end

atomic-agent/src/hooks/opencode.rs:766–772  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

764
765 #[test]
766 fn test_parse_session_end() {
767 let hook = make_hook();
768 let input = br#"{"session_id": "oc-abc123", "reason": "deleted"}"#;
769 let event = hook.parse_event(HookType::SessionEnd, input).unwrap();
770 assert_eq!(event.session_id, "oc-abc123");
771 assert_eq!(event.event_type, HookType::SessionEnd);
772 }
773
774 // parse_event tests: user-prompt (TurnStart)
775

Callers

nothing calls this directly

Calls 3

make_hookFunction · 0.70
unwrapMethod · 0.45
parse_eventMethod · 0.45

Tested by

no test coverage detected