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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

make_hookFunction · 0.70
unwrapMethod · 0.45
parse_eventMethod · 0.45

Tested by

no test coverage detected