Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alibaba/open-code-review
/ functions
Functions
7,169 in github.com/alibaba/open-code-review
⨍
Functions
7,169
◇
Types & classes
774
Function
TestResolveCommitComparison
(test *testing.T)
internal/diff/comparison_test.go:15
Function
TestResolveCommitComparisonRejectsShallowParent
(test *testing.T)
internal/diff/comparison_test.go:50
Function
TestResolveConfig
(t *testing.T)
internal/telemetry/config_test.go:234
Function
TestResolveDeduplicatesReferencesInFirstOccurrenceOrder
(test *testing.T)
internal/config/toolsconfig/toolsconfig_test.go:150
Function
TestResolveDefaultsForEachProvider
(t *testing.T)
acp/internal/intent/llm/resolve_test.go:15
Function
TestResolveDetail_CustomOverridesAll
(t *testing.T)
internal/config/rules/system_rules_test.go:1288
Function
TestResolveDetail_MergeSystemRule
(t *testing.T)
internal/config/rules/system_rules_test.go:1242
Function
TestResolveDetail_ProjectOverridesSystem
(t *testing.T)
internal/config/rules/system_rules_test.go:1206
Function
TestResolveDetail_SystemComposerPatternPrecedesJSON
(t *testing.T)
internal/config/rules/system_rules_test.go:1176
Function
TestResolveDetail_SystemDefault
(t *testing.T)
internal/config/rules/system_rules_test.go:916
Function
TestResolveDetail_SystemGoPatternMatch
(t *testing.T)
internal/config/rules/system_rules_test.go:1037
Function
TestResolveDetail_SystemMoveRulesDialectAndEnvironmentScope
(t *testing.T)
internal/config/rules/system_rules_test.go:1128
Function
TestResolveDetail_SystemMoveTomlPatternPrecedesMove
(t *testing.T)
internal/config/rules/system_rules_test.go:1099
Function
TestResolveDetail_SystemPHPPatternMatch
(t *testing.T)
internal/config/rules/system_rules_test.go:1068
Function
TestResolveDetail_SystemPatternMatch
(t *testing.T)
internal/config/rules/system_rules_test.go:935
Function
TestResolveDetail_SystemPowerShellPatternMatch
(t *testing.T)
internal/config/rules/system_rules_test.go:955
Function
TestResolveDetail_SystemPrismaPatternMatch
(t *testing.T)
internal/config/rules/system_rules_test.go:981
Function
TestResolveDetail_SystemPugPatternMatch
(t *testing.T)
internal/config/rules/system_rules_test.go:1005
Function
TestResolveEndpointWithModelOverride_AllBuiltInProvidersAcceptUnlistedModel
(t *testing.T)
internal/llm/resolver_test.go:1406
Function
TestResolveEndpointWithModelOverride_BadEnvOverrideDoesNotRunAPIKeyCmd
A bad global env override must be rejected before any strategy runs: OCR_LLM_TIMEOUT="30s" (the field wants a bare integer) used to be parsed only aft
internal/llm/resolver_test.go:1215
Function
TestResolveEndpointWithModelOverride_CustomProviderWithoutConfiguredModel
(t *testing.T)
internal/llm/resolver_test.go:727
Function
TestResolveEndpointWithModelOverride_InvalidModelInCustomProviderList
(t *testing.T)
internal/llm/resolver_test.go:1313
Function
TestResolveEndpointWithModelOverride_LegacyConfigNoValidation
(t *testing.T)
internal/llm/resolver_test.go:1527
Function
TestResolveEndpointWithModelOverride_MergesPresetAndEntryModels
(t *testing.T)
internal/llm/resolver_test.go:1470
Function
TestResolveEndpointWithModelOverride_NoValidationWhenNoModelList
(t *testing.T)
internal/llm/resolver_test.go:1342
Function
TestResolveEndpointWithModelOverride_OpenRouterAcceptsUnlistedModel
(t *testing.T)
internal/llm/resolver_test.go:1371
Function
TestResolveEndpointWithModelOverride_UnlistedModelStillRunsAPIKeyCmd
(t *testing.T)
internal/llm/resolver_test.go:1184
Function
TestResolveEndpointWithModelOverride_UnlistedPresetModelWarns
(t *testing.T)
internal/llm/resolver_test.go:1156
Function
TestResolveEndpointWithModelOverride_ValidModelInCustomProviderList
(t *testing.T)
internal/llm/resolver_test.go:1284
Function
TestResolveEndpointWithModelOverride_ValidModelInPresetList
(t *testing.T)
internal/llm/resolver_test.go:1132
Function
TestResolveEndpointWithOptions_ConfigRequestTimeout
(t *testing.T)
internal/llm/resolver_test.go:2926
Function
TestResolveEndpointWithOptions_DefaultRequestTimeout
(t *testing.T)
internal/llm/resolver_test.go:2895
Function
TestResolveEndpointWithOptions_DifferentProviderDoesNotReuseTopLevelModel
(t *testing.T)
internal/llm/resolver_test.go:456
Function
TestResolveEndpointWithOptions_EnvRequestTimeout
(t *testing.T)
internal/llm/resolver_test.go:2910
Function
TestResolveEndpointWithOptions_ExplicitProvider
(t *testing.T)
internal/llm/resolver_test.go:399
Function
TestResolveEndpointWithOptions_ExplicitProviderAndModel
(t *testing.T)
internal/llm/resolver_test.go:521
Function
TestResolveEndpointWithOptions_ExplicitProviderUsesProviderAPIKeyEnvironmentFallback
(t *testing.T)
internal/llm/resolver_test.go:592
Function
TestResolveEndpointWithOptions_ExplicitProviderWithoutConfigNamesSection
(t *testing.T)
internal/llm/resolver_test.go:551
Function
TestResolveEndpointWithOptions_ModelOverrideBeatsEnvironmentModel
(t *testing.T)
internal/llm/resolver_test.go:385
Function
TestResolveEndpointWithOptions_ModelOverrideCompletesOCREnvironment
(t *testing.T)
internal/llm/resolver_test.go:371
Function
TestResolveEndpointWithOptions_SameProviderPreservesTopLevelModel
(t *testing.T)
internal/llm/resolver_test.go:502
Function
TestResolveEndpointWithOptions_UnknownProviderFailsWithoutFallbackOrMutation
(t *testing.T)
internal/llm/resolver_test.go:570
Function
TestResolveEndpoint_APIKeyCmdFailureDoesNotFallBackToEnv
(d2) the property the design calls non-negotiable: a misconfigured credential command must never silently downgrade to an env var. TestResolveEndpoint
internal/llm/resolver_keycmd_test.go:329
Function
TestResolveEndpoint_APIKeyCmdRunsExactlyOnce
(a2) the command runs exactly once per resolution. "No caching" is correct today only because resolution happens once per process; a second call would
internal/llm/resolver_keycmd_test.go:53
Function
TestResolveEndpoint_BothSetWarnsAndUsesStaticKey
(b2) when both api_key and api_key_cmd are set, a warning is emitted on stderr and the resolved token is still the static api_key.
internal/llm/resolver_keycmd_test.go:152
Function
TestResolveEndpoint_CCEnvCleanModelUnchanged
(t *testing.T)
internal/llm/resolver_test.go:64
Function
TestResolveEndpoint_CCEnvStripsModelSuffix
(t *testing.T)
internal/llm/resolver_test.go:44
Function
TestResolveEndpoint_ConfigAnthropicDefaultsToAuthorization
(t *testing.T)
internal/llm/resolver_test.go:131
Function
TestResolveEndpoint_ConfigAuthHeaderOverrideToXAPIKey
(t *testing.T)
internal/llm/resolver_test.go:163
Function
TestResolveEndpoint_ConfigFileStripsModelSuffix
(t *testing.T)
internal/llm/resolver_test.go:98
Function
TestResolveEndpoint_ConfigOpenAIIgnoresAuthHeader
(t *testing.T)
internal/llm/resolver_test.go:196
Function
TestResolveEndpoint_ConfigPrecedesClaudeCodeEnvironment
(t *testing.T)
internal/llm/resolver_test.go:318
Function
TestResolveEndpoint_ConfigPrecedesInvalidCompleteEnvironment
(t *testing.T)
internal/llm/resolver_test.go:353
Function
TestResolveEndpoint_ConfigPrecedesOCREnvironment
(t *testing.T)
internal/llm/resolver_test.go:301
Function
TestResolveEndpoint_ConfigTimeoutSec
(t *testing.T)
internal/llm/resolver_test.go:1994
Function
TestResolveEndpoint_CustomProvider
(t *testing.T)
internal/llm/resolver_test.go:899
Function
TestResolveEndpoint_CustomProviderAPIKeyCmd
(c) custom provider with api_key_cmd resolves (custom providers have no env fallback).
internal/llm/resolver_keycmd_test.go:284
Function
TestResolveEndpoint_CustomProviderAnthropicVertexRejected
(t *testing.T)
internal/llm/resolver_test.go:2342
Function
TestResolveEndpoint_CustomProviderChatCompletionsProtocol
(t *testing.T)
internal/llm/resolver_test.go:2288
Function
TestResolveEndpoint_CustomProviderInvalidProtocol
(t *testing.T)
internal/llm/resolver_test.go:937
Function
TestResolveEndpoint_CustomProviderMissingFields
(t *testing.T)
internal/llm/resolver_test.go:963
Function
TestResolveEndpoint_CustomProviderModelFromTopLevel
(t *testing.T)
internal/llm/resolver_test.go:1020
Function
TestResolveEndpoint_CustomProviderNoEnvFallback
(t *testing.T)
internal/llm/resolver_test.go:988
Function
TestResolveEndpoint_CustomProviderOpenAIAlias
(t *testing.T)
internal/llm/resolver_test.go:2315
Function
TestResolveEndpoint_CustomProviderResponsesProtocol
--- openai-responses / protocol normalization tests ---
internal/llm/resolver_test.go:2254
Function
TestResolveEndpoint_EnvExtraHeadersMergedWithConfigFile
(t *testing.T)
internal/llm/resolver_test.go:1821
Function
TestResolveEndpoint_EnvTimeoutGlobalOverride
(t *testing.T)
internal/llm/resolver_test.go:1977
Function
TestResolveEndpoint_EnvTimeoutOverridesConfigTimeout
(t *testing.T)
internal/llm/resolver_test.go:2142
Function
TestResolveEndpoint_EnvTimeoutOverridesProviderTimeout
(t *testing.T)
internal/llm/resolver_test.go:2170
Function
TestResolveEndpoint_EnvValuesAreTrimmed
Issue #1395: an environment generated with CRLF line endings (a .env file, a Windows shell wrapper, a CI variable) can carry a trailing "\r". Endpoint
internal/llm/resolver_test.go:2750
Function
TestResolveEndpoint_IncompleteConfigFallsBackToOCREnvironment
(t *testing.T)
internal/llm/resolver_test.go:336
Function
TestResolveEndpoint_InvalidEnvTimeoutWithConfig
(t *testing.T)
internal/llm/resolver_test.go:2200
Function
TestResolveEndpoint_InvalidEnvURLNamesSourceAndVariable
(t *testing.T)
internal/llm/resolver_test.go:2848
Function
TestResolveEndpoint_InvalidRetryCodes
(t *testing.T)
internal/llm/resolver_test.go:2688
Function
TestResolveEndpoint_LegacyAuthTokenCmd
(e) legacy auth_token_cmd resolves on an otherwise-complete llm block.
internal/llm/resolver_keycmd_test.go:352
Function
TestResolveEndpoint_LegacyAuthTokenCmdFailsHard
(e3) legacy path: an otherwise-complete llm block whose auth_token_cmd fails is a hard error. The Claude Code env vars are set to prove it does not fa
internal/llm/resolver_keycmd_test.go:374
Function
TestResolveEndpoint_LegacyBothSetWarnsAndUsesStaticToken
(e2) legacy path: both auth_token and auth_token_cmd set -> warning + static wins.
internal/llm/resolver_keycmd_test.go:180
Function
TestResolveEndpoint_LegacyIncompleteDoesNotRunCmd
(f) an incomplete legacy block (missing url) with auth_token_cmd set does NOT run the command and falls through to later strategies.
internal/llm/resolver_keycmd_test.go:397
Function
TestResolveEndpoint_LegacyLlmExtraHeaders
(t *testing.T)
internal/llm/resolver_test.go:1888
Function
TestResolveEndpoint_LegacyLlmProtocolTakesPriorityOverUseAnthropic
(t *testing.T)
internal/llm/resolver_test.go:2369
Function
TestResolveEndpoint_LegacyLlmRetryCodes
(t *testing.T)
internal/llm/resolver_test.go:2664
Function
TestResolveEndpoint_LegacyLlmStillWorks
(t *testing.T)
internal/llm/resolver_test.go:1049
Function
TestResolveEndpoint_LegacyWhitespaceOnlyCmdIsUnset
(b5) same rule on the legacy block: whitespace-only auth_token_cmd leaves the block incomplete rather than running an empty command and hard-failing.
internal/llm/resolver_keycmd_test.go:133
Function
TestResolveEndpoint_LegacyWhitespaceOnlyStaticTokenUsesCmd
(e4) same on the legacy path.
internal/llm/resolver_keycmd_test.go:257
Function
TestResolveEndpoint_MiniMaxProviderEnvFallback
(t *testing.T)
internal/llm/resolver_test.go:784
Function
TestResolveEndpoint_MiniMaxProviderRejectsOtherRegionEnv
(t *testing.T)
internal/llm/resolver_test.go:825
Function
TestResolveEndpoint_NegativeConfigTimeoutSec
(t *testing.T)
internal/llm/resolver_test.go:2020
Function
TestResolveEndpoint_NegativeEnvTimeoutWithConfig
(t *testing.T)
internal/llm/resolver_test.go:2226
Function
TestResolveEndpoint_OCREnvAuthHeader
(t *testing.T)
internal/llm/resolver_test.go:232
Function
TestResolveEndpoint_OCREnvExtraHeaders
(t *testing.T)
internal/llm/resolver_test.go:1721
Function
TestResolveEndpoint_OCREnvExtraHeadersEmpty
(t *testing.T)
internal/llm/resolver_test.go:1743
Function
TestResolveEndpoint_OCREnvExtraHeadersInvalid
(t *testing.T)
internal/llm/resolver_test.go:1758
Function
TestResolveEndpoint_OCREnvExtraHeadersReservedRejected
(t *testing.T)
internal/llm/resolver_test.go:1774
Function
TestResolveEndpoint_OCREnvOpenAIIgnoresAuthHeader
(t *testing.T)
internal/llm/resolver_test.go:247
Function
TestResolveEndpoint_OCREnvProtocolAlias
(t *testing.T)
internal/llm/resolver_test.go:2413
Function
TestResolveEndpoint_OCREnvProtocolInvalid
(t *testing.T)
internal/llm/resolver_test.go:2429
Function
TestResolveEndpoint_OCREnvProtocolTakesPriorityOverUseAnthropic
(t *testing.T)
internal/llm/resolver_test.go:2396
Function
TestResolveEndpoint_OCREnvStripsModelSuffix
(t *testing.T)
internal/llm/resolver_test.go:81
Function
TestResolveEndpoint_PresetProviderURLDefaultsToPreset
TestResolveEndpoint_PresetProviderURLDefaultsToPreset verifies that a built-in provider without a configured url resolves to preset.BaseURL.
internal/llm/resolver_test.go:2555
Function
TestResolveEndpoint_PresetProviderURLOverride
TestResolveEndpoint_PresetProviderURLOverride verifies that a configured providers.<name>.url overrides the preset BaseURL for a built-in provider, wh
internal/llm/resolver_test.go:2526
← previous
next →
5,301–5,400 of 7,169, ranked by callers