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

Function test_parse_stop

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

Source from the content-addressed store, hash-verified

542
543 #[test]
544 fn test_parse_stop() {
545 let hook = make_hook();
546 let input =
547 br#"{"session_id":"devin-123","model":"claude-sonnet-4","trajectory_id":"traj-1"}"#;
548 let event = hook.parse_event(HookType::TurnEnd, input).unwrap();
549 assert_eq!(event.session_id, "devin-123");
550 assert_eq!(event.event_type, HookType::TurnEnd);
551 }
552
553 #[test]
554 fn test_parse_post_tool() {

Callers

nothing calls this directly

Calls 3

make_hookFunction · 0.70
unwrapMethod · 0.45
parse_eventMethod · 0.45

Tested by

no test coverage detected