()
| 150 | use config::{RouteConfig, RouterConfig}; |
| 151 | |
| 152 | fn test_config() -> RouterConfig { |
| 153 | RouterConfig { |
| 154 | routes: vec![RouteConfig { |
| 155 | name: "inference.local".to_string(), |
| 156 | endpoint: "http://localhost:8000/v1".to_string(), |
| 157 | model: "meta/llama-3.1-8b-instruct".to_string(), |
| 158 | provider_type: None, |
| 159 | protocols: vec!["openai_chat_completions".to_string()], |
| 160 | api_key: Some("test-key".to_string()), |
| 161 | api_key_env: None, |
| 162 | }], |
| 163 | } |
| 164 | } |
| 165 | |
| 166 | #[test] |
| 167 | fn router_resolves_routes_from_config() { |
no outgoing calls
no test coverage detected