Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alibaba/open-code-review
/ functions
Functions
7,484 in github.com/alibaba/open-code-review
⨍
Functions
7,484
◇
Types & classes
809
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
Function
TestResolveEndpoint_ProviderAPIKeyCmd
(a) api_key_cmd resolves when no static key is present.
internal/llm/resolver_keycmd_test.go:33
Function
TestResolveEndpoint_ProviderAPIKeyCmdFailsHard
(d) a failing api_key_cmd is a hard error, not a silent fallback.
internal/llm/resolver_keycmd_test.go:307
Function
TestResolveEndpoint_ProviderAPIKeyEnvFallback
(t *testing.T)
internal/llm/resolver_test.go:759
Function
TestResolveEndpoint_ProviderAnthropic
(t *testing.T)
internal/llm/resolver_test.go:612
Function
TestResolveEndpoint_ProviderAnthropicURLHasMessagesSuffix
(t *testing.T)
internal/llm/resolver_test.go:1077
Function
TestResolveEndpoint_ProviderConfigNegativeTimeoutSec
(t *testing.T)
internal/llm/resolver_test.go:2114
Function
TestResolveEndpoint_ProviderConfigTimeoutSec
(t *testing.T)
internal/llm/resolver_test.go:2086
Function
TestResolveEndpoint_ProviderEntryModelOverridesDefault
(t *testing.T)
internal/llm/resolver_test.go:703
Function
TestResolveEndpoint_ProviderExtraBody
(t *testing.T)
internal/llm/resolver_test.go:1101
Function
TestResolveEndpoint_ProviderExtraHeaders
(t *testing.T)
internal/llm/resolver_test.go:1790
Function
TestResolveEndpoint_ProviderMissingAPIKey
(t *testing.T)
internal/llm/resolver_test.go:859
Function
TestResolveEndpoint_ProviderModelOverride
(t *testing.T)
internal/llm/resolver_test.go:678
Function
TestResolveEndpoint_ProviderNotConfigured
(t *testing.T)
internal/llm/resolver_test.go:880
Function
TestResolveEndpoint_ProviderOpenAI
(t *testing.T)
internal/llm/resolver_test.go:648
Function
TestResolveEndpoint_ProviderRetryCodes
(t *testing.T)
internal/llm/resolver_test.go:2636
Function
TestResolveEndpoint_ProviderStaticKeyWinsOverCmd
(b) static api_key wins even when api_key_cmd is also set — and the command does not run at all. Asserting only on ep.Token would pass just as well if
internal/llm/resolver_keycmd_test.go:85
Function
TestResolveEndpoint_RedundantRetryCodesFiltered
(t *testing.T)
internal/llm/resolver_test.go:2716
Function
TestResolveEndpoint_ResponsesURLNotMutated
TestResolveEndpoint_ResponsesURLNotMutated makes sure the resolver leaves openai-responses URLs alone — only anthropic gets /v1/messages appended.
internal/llm/resolver_test.go:2447
Function
TestResolveEndpoint_SessionKeyPlaceholderPreserved
(t *testing.T)
internal/llm/resolver_test.go:1856
Function
TestResolveEndpoint_UnlistedConfiguredModelDoesNotWarn
(t *testing.T)
internal/llm/resolver_test.go:1451
Function
TestResolveEndpoint_WhitespaceOnlyCmdFallsBackToEnv
(b4) a whitespace-only api_key_cmd is a typo, not a command: it must not suppress the env-var fallback the way a real command does. Same rule the stat
internal/llm/resolver_keycmd_test.go:113
Function
TestResolveEndpoint_WhitespaceOnlyEnvVarIsNotACredential
(e3b) the same whitespace rule reaches the env-var fallback, which is the last source in the chain and had been exempt: a whitespace-only value there
internal/llm/resolver_keycmd_test.go:238
Function
TestResolveEndpoint_WhitespaceOnlyStaticKeyUsesCmd
(b3) a whitespace-only api_key is a typo, not a credential: it must not shadow the command (which used to resolve Token=" " -> 401, command never ru
internal/llm/resolver_keycmd_test.go:210
Function
TestResolveEnv
(t *testing.T)
internal/telemetry/config_test.go:34
Function
TestResolveErrors
(t *testing.T)
acp/internal/intent/llm/resolve_test.go:102
Function
TestResolveFlagsWinOverEnvironment
(t *testing.T)
acp/internal/intent/llm/resolve_test.go:71
Function
TestResolveFromEnvironment
(t *testing.T)
acp/internal/intent/llm/resolve_test.go:53
Function
TestResolveFromHunk_AddedLines
--------------------------------------------------------------------------- resolveFromHunk integration tests ----------------------------------------
internal/diff/resolver_test.go:548
Function
TestResolveFromHunk_AddedWithContext
(t *testing.T)
internal/diff/resolver_test.go:698
Function
TestResolveFromHunk_BlankLineRetry
(t *testing.T)
internal/diff/resolver_test.go:751
Function
TestResolveFromHunk_ContextLinesOnly
(t *testing.T)
internal/diff/resolver_test.go:596
Function
TestResolveFromHunk_MultiHunkMatchInSecond
(t *testing.T)
internal/diff/resolver_test.go:670
Function
TestResolveFromHunk_NewSideAcrossDeletedLines
(t *testing.T)
internal/diff/resolver_test.go:725
Function
TestResolveFromHunk_NewSidePriority
(t *testing.T)
internal/diff/resolver_test.go:643
Function
TestResolveFromHunk_OldSideAcrossAddedLines
(t *testing.T)
internal/diff/resolver_test.go:572
Function
TestResolveFromHunk_SingleAddedLine
(t *testing.T)
internal/diff/resolver_test.go:622
Function
TestResolveGroupSystemRule
(t *testing.T)
internal/agent/grouping_test.go:576
Function
TestResolveIdentityMatchesRunPath
TestResolveIdentityMatchesRunPath is the assertion the whole resume check rests on: the digest resolved before a run must equal the digest that run re
internal/agent/identity_test.go:49
Function
TestResolveIdentityTracksConfigChanges
(t *testing.T)
internal/agent/identity_test.go:98
Function
TestResolveInputBeforeDiffCommit
(t *testing.T)
internal/agent/identity_test.go:171
Function
TestResolveInputBeforeDiffRejectsInvalidRefs
(t *testing.T)
internal/agent/identity_test.go:186
Function
TestResolveInput_MergeCommit
(t *testing.T)
internal/diff/git_resolve_test.go:111
Function
TestResolveInput_Range
(t *testing.T)
internal/diff/git_resolve_test.go:50
Function
TestResolveInput_RootCommit
(t *testing.T)
internal/diff/git_resolve_test.go:93
← previous
next →
5,601–5,700 of 7,484, ranked by callers