()
| 911 | |
| 912 | #[test] |
| 913 | fn test_code_config_default_llm_config() { |
| 914 | let config = CodeConfig { |
| 915 | default_model: Some("anthropic/claude-sonnet-4".to_string()), |
| 916 | providers: vec![ProviderConfig { |
| 917 | name: "anthropic".to_string(), |
| 918 | api_key: Some("sk-test".to_string()), |
| 919 | base_url: Some("https://api.anthropic.com".to_string()), |
| 920 | headers: HashMap::new(), |
| 921 | session_id_header: None, |
| 922 | models: vec![ModelConfig { |
| 923 | id: "claude-sonnet-4".to_string(), |
| 924 | name: "Claude Sonnet 4".to_string(), |
| 925 | family: "claude-sonnet".to_string(), |
| 926 | api_key: None, |
| 927 | base_url: None, |
| 928 | headers: HashMap::new(), |
| 929 | session_id_header: None, |
| 930 | attachment: false, |
| 931 | reasoning: false, |
| 932 | tool_call: true, |
| 933 | temperature: true, |
| 934 | release_date: None, |
| 935 | modalities: ModelModalities::default(), |
| 936 | cost: ModelCost::default(), |
| 937 | limit: ModelLimit::default(), |
| 938 | }], |
| 939 | }], |
| 940 | ..Default::default() |
| 941 | }; |
| 942 | |
| 943 | let llm_config = config.default_llm_config(); |
| 944 | assert!(llm_config.is_some()); |
| 945 | } |
| 946 | |
| 947 | #[test] |
| 948 | fn test_code_config_list_models() { |
nothing calls this directly
no test coverage detected