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

Function test_parse_turn_end

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

Source from the content-addressed store, hash-verified

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