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

Function test_parse_user_prompt_with_model

atomic-agent/src/hooks/copilot.rs:656–662  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

654
655 #[test]
656 fn test_parse_user_prompt_with_model() {
657 let hook = make_hook();
658 let input = br#"{"session_id": "s1", "prompt": "hello", "model": "gpt-4o"}"#;
659 let event = hook.parse_event(HookType::TurnStart, input).unwrap();
660 let raw = event.raw_json.unwrap();
661 assert_eq!(raw["model"], "gpt-4o");
662 }
663
664 // ── parse_event tests: pre-tool (PreToolUse) ────────────────────
665

Callers

nothing calls this directly

Calls 3

make_hookFunction · 0.70
unwrapMethod · 0.45
parse_eventMethod · 0.45

Tested by

no test coverage detected