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

Function test_parse_turn_end

atomic-agent/src/hooks/cursor.rs:958–964  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

956
957 #[test]
958 fn test_parse_turn_end() {
959 let hook = make_hook();
960 let input = br#"{"conversation_id": "c1", "status": "completed"}"#;
961 let event = hook.parse_event(HookType::TurnEnd, input).unwrap();
962 assert_eq!(event.session_id, "c1");
963 assert_eq!(event.event_type, HookType::TurnEnd);
964 }
965
966 #[test]
967 fn test_parse_turn_end_with_model_and_status() {

Callers

nothing calls this directly

Calls 3

make_hookFunction · 0.70
unwrapMethod · 0.45
parse_eventMethod · 0.45

Tested by

no test coverage detected