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

Function test_parse_prompt_submit

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

Source from the content-addressed store, hash-verified

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