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

Function test_parse_session_end

atomic-agent/src/hooks/devin.rs:512–518  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

510
511 #[test]
512 fn test_parse_session_end() {
513 let hook = make_hook();
514 let input = br#"{"session_id":"devin-123","reason":"user_closed"}"#;
515 let event = hook.parse_event(HookType::SessionEnd, input).unwrap();
516 assert_eq!(event.session_id, "devin-123");
517 assert_eq!(event.event_type, HookType::SessionEnd);
518 }
519
520 #[test]
521 fn test_parse_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