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

Function test_parse_stop

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

Source from the content-addressed store, hash-verified

538
539 #[test]
540 fn test_parse_stop() {
541 let hook = make_hook();
542 let input =
543 br#"{"session_id":"devin-123","model":"claude-sonnet-4","trajectory_id":"traj-1"}"#;
544 let event = hook.parse_event(HookType::TurnEnd, input).unwrap();
545 assert_eq!(event.session_id, "devin-123");
546 assert_eq!(event.event_type, HookType::TurnEnd);
547 }
548
549 #[test]
550 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