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

Function test_parse_turn_end

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

Source from the content-addressed store, hash-verified

958
959 #[test]
960 fn test_parse_turn_end() {
961 let hook = make_hook();
962 let input = br#"{"conversation_id": "c1", "status": "completed"}"#;
963 let event = hook.parse_event(HookType::TurnEnd, input).unwrap();
964 assert_eq!(event.session_id, "c1");
965 assert_eq!(event.event_type, HookType::TurnEnd);
966 }
967
968 #[test]
969 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