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

Function test_parse_turn_start

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

Source from the content-addressed store, hash-verified

932
933 #[test]
934 fn test_parse_turn_start() {
935 let hook = make_hook();
936 let input = br#"{"conversation_id": "c1", "prompt": "Fix the bug", "model": "gpt-4o"}"#;
937 let event = hook.parse_event(HookType::TurnStart, input).unwrap();
938 assert_eq!(event.session_id, "c1");
939 assert_eq!(event.event_type, HookType::TurnStart);
940 assert_eq!(event.prompt.as_deref(), Some("Fix the bug"));
941 }
942
943 #[test]
944 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