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

Function test_parse_turn_start

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

Source from the content-addressed store, hash-verified

927
928 #[test]
929 fn test_parse_turn_start() {
930 let hook = make_hook();
931 let input = br#"{"conversation_id": "c1", "prompt": "Fix the bug", "model": "gpt-4o"}"#;
932 let event = hook.parse_event(HookType::TurnStart, input).unwrap();
933 assert_eq!(event.session_id, "c1");
934 assert_eq!(event.event_type, HookType::TurnStart);
935 assert_eq!(event.prompt.as_deref(), Some("Fix the bug"));
936 }
937
938 #[test]
939 fn test_parse_turn_start_no_prompt() {

Callers

nothing calls this directly

Calls 3

make_hookFunction · 0.70
unwrapMethod · 0.45
parse_eventMethod · 0.45

Tested by

no test coverage detected