MCPcopy Create free account
hub / github.com/AI45Lab/Code / test_code_config_default_provider_config

Function test_code_config_default_provider_config

core/src/config/tests.rs:855–872  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

853
854#[test]
855fn 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]
875fn test_code_config_default_model_config() {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected