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

Function test_parse_prompt_submit

atomic-agent/src/hooks/devin.rs:524–532  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

522
523 #[test]
524 fn test_parse_prompt_submit() {
525 let hook = make_hook();
526 let input =
527 br#"{"session_id":"devin-123","prompt":"fix the bug","model":"claude-sonnet-4"}"#;
528 let event = hook.parse_event(HookType::TurnStart, input).unwrap();
529 assert_eq!(event.session_id, "devin-123");
530 assert_eq!(event.event_type, HookType::TurnStart);
531 assert_eq!(event.prompt.as_deref(), Some("fix the bug"));
532 }
533
534 #[test]
535 fn test_parse_prompt_submit_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