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

Function test_parse_stop

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

Source from the content-addressed store, hash-verified

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