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:944–949  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

942
943 #[test]
944 fn test_parse_turn_start_no_prompt() {
945 let hook = make_hook();
946 let input = br#"{"conversation_id": "c1"}"#;
947 let event = hook.parse_event(HookType::TurnStart, input).unwrap();
948 assert!(event.prompt.is_none());
949 }
950
951 #[test]
952 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