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

Function test_parse_prompt_submit

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

Source from the content-addressed store, hash-verified

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