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

Function test_parse_model_provider_only

atomic-agent/src/hooks/cline.rs:1097–1104  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1095
1096 #[test]
1097 fn test_parse_model_provider_only() {
1098 let hook = make_hook();
1099 let input = br#"{"taskId": "t1", "model": {"provider": "anthropic"}}"#;
1100 let event = hook.parse_event(HookType::SessionStart, input).unwrap();
1101 let raw = event.raw_json.unwrap();
1102 assert_eq!(raw["vendor"], "anthropic");
1103 assert!(raw.get("model_name").is_none());
1104 }
1105
1106 #[test]
1107 fn test_parse_model_slug_only() {

Callers

nothing calls this directly

Calls 3

make_hookFunction · 0.70
unwrapMethod · 0.45
parse_eventMethod · 0.45

Tested by

no test coverage detected