()
| 853 | |
| 854 | #[test] |
| 855 | fn test_code_config_default_provider_config() { |
| 856 | let config = CodeConfig { |
| 857 | default_model: Some("anthropic/claude-sonnet-4".to_string()), |
| 858 | providers: vec![ProviderConfig { |
| 859 | name: "anthropic".to_string(), |
| 860 | api_key: Some("sk-test".to_string()), |
| 861 | base_url: None, |
| 862 | headers: HashMap::new(), |
| 863 | session_id_header: None, |
| 864 | models: vec![], |
| 865 | }], |
| 866 | ..Default::default() |
| 867 | }; |
| 868 | |
| 869 | let provider = config.default_provider_config(); |
| 870 | assert!(provider.is_some()); |
| 871 | assert_eq!(provider.unwrap().name, "anthropic"); |
| 872 | } |
| 873 | |
| 874 | #[test] |
| 875 | fn test_code_config_default_model_config() { |
nothing calls this directly
no test coverage detected