()
| 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() { |
nothing calls this directly
no test coverage detected