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

Function test_parse_turn_start_no_prompt

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

Source from the content-addressed store, hash-verified

937
938 #[test]
939 fn test_parse_turn_start_no_prompt() {
940 let hook = make_hook();
941 let input = br#"{"conversation_id": "c1"}"#;
942 let event = hook.parse_event(HookType::TurnStart, input).unwrap();
943 assert!(event.prompt.is_none());
944 }
945
946 #[test]
947 fn test_parse_turn_start_model_in_raw_json() {

Callers

nothing calls this directly

Calls 3

make_hookFunction · 0.70
unwrapMethod · 0.45
parse_eventMethod · 0.45

Tested by

no test coverage detected