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
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
Function
TestResolveInput_SingleParentCommit
(t *testing.T)
internal/diff/git_resolve_test.go:73
Function
TestResolveInput_UnbornWorkspace
(t *testing.T)
internal/diff/git_resolve_test.go:211
Function
TestResolveInput_Workspace
(t *testing.T)
internal/diff/git_resolve_test.go:144
Function
TestResolveInvalidConfiguration
(test *testing.T)
internal/config/toolsconfig/toolsconfig_test.go:185
Function
TestResolveKeyCmd
(t *testing.T)
internal/llm/keycmd_test.go:15
Function
TestResolveKeyCmd
(t *testing.T)
internal/llm/keycmd_windows_test.go:40
Function
TestResolveKeyCmd_LabelInError
(t *testing.T)
internal/llm/keycmd_test.go:196
Function
TestResolveKeyCmd_LabelInError
(t *testing.T)
internal/llm/keycmd_windows_test.go:150
Function
TestResolveKeyCmd_StdinWired
TestResolveKeyCmd_StdinWired proves the child inherits our stdin: with Stdin left nil, os/exec hands the child /dev/null, `read` sees EOF and prints n
internal/llm/keycmd_test.go:167
Function
TestResolveKeyCmd_StdinWired
TestResolveKeyCmd_StdinWired proves the child inherits our stdin: with Stdin left nil, os/exec hands the child NUL, findstr reads EOF immediately and
internal/llm/keycmd_windows_test.go:121
Function
TestResolveKeyCmd_Timeout
(t *testing.T)
internal/llm/keycmd_test.go:114
Function
TestResolveKeyCmd_Timeout
(t *testing.T)
internal/llm/keycmd_windows_test.go:98
Function
TestResolveKeyCmd_WaitDelayBoundsOrphanHoldingPipe
A grandchild that inherited the stdout pipe keeps it open after the shell exits, which used to block Wait until the grandchild died. WaitDelay bounds
internal/llm/keycmd_test.go:134
Function
TestResolveLang
(t *testing.T)
internal/config/template/template_test.go:493
Function
TestResolveLang
(t *testing.T)
internal/config/testconnection/testconnection_test.go:42
Function
TestResolveLineNumbers_AlreadyResolved
--------------------------------------------------------------------------- ResolveLineNumbers integration tests (additional scenarios) --------------
internal/diff/resolver_test.go:858
Function
TestResolveLineNumbers_DiffMarkerInExistingCode
(t *testing.T)
internal/diff/resolver_test.go:962
Function
TestResolveLineNumbers_EmptyInputs
(t *testing.T)
internal/diff/resolver_test.go:275
Function
TestResolveLineNumbers_FallbackToFileContent
(t *testing.T)
internal/diff/resolver_test.go:95
Function
TestResolveLineNumbers_FallbackToFileContent_AllBlankExistingCode
(t *testing.T)
internal/diff/resolver_test.go:214
Function
TestResolveLineNumbers_FallbackToFileContent_BlankLines
(t *testing.T)
internal/diff/resolver_test.go:123
Function
TestResolveLineNumbers_FallbackToFileContent_CRLF
(t *testing.T)
internal/diff/resolver_test.go:178
Function
TestResolveLineNumbers_FallbackToFileContent_FirstMatchWins
(t *testing.T)
internal/diff/resolver_test.go:196
Function
TestResolveLineNumbers_FallbackToFileContent_LeadingBlanks
(t *testing.T)
internal/diff/resolver_test.go:160
Function
TestResolveLineNumbers_FallbackToFileContent_MultipleBlankLines
(t *testing.T)
internal/diff/resolver_test.go:142
Function
TestResolveLineNumbers_MixedStrategies
(t *testing.T)
internal/diff/resolver_test.go:927
Function
TestResolveLineNumbers_MultiLineHunkMatch
(t *testing.T)
internal/diff/resolver_test.go:65
Function
TestResolveLineNumbers_MultipleCommentsOnSameFile
(t *testing.T)
internal/diff/resolver_test.go:870
Function
TestResolveLineNumbers_NoExistingCode
(t *testing.T)
internal/diff/resolver_test.go:247
Function
TestResolveLineNumbers_NoMatchKeepsZero
(t *testing.T)
internal/diff/resolver_test.go:232
Function
TestResolveLineNumbers_OldPathMapping
(t *testing.T)
internal/diff/resolver_test.go:905
Function
TestResolveLineNumbers_PathNotFound
(t *testing.T)
internal/diff/resolver_test.go:261
Function
TestResolveLineNumbers_SingleLineHunkMatch
(t *testing.T)
internal/diff/resolver_test.go:21
Function
TestResolveLineNumbers_WhitespaceTolerant
(t *testing.T)
internal/diff/resolver_test.go:49
Function
TestResolveMaxTokensPrecedence
(t *testing.T)
cmd/opencodereview/shared_test.go:19
Function
TestResolveOrderedDefinitions
(test *testing.T)
internal/config/toolsconfig/toolsconfig_test.go:117
Function
TestResolveOutputWriter_DirectoryTarget
(t *testing.T)
cmd/opencodereview/output_file_test.go:192
Function
TestResolveOutputWriter_MissingParent
(t *testing.T)
cmd/opencodereview/output_file_test.go:200
Function
TestResolveOutputWriter_SafeByDefaultStripsNonMachineReadable
TestResolveOutputWriter_SafeByDefaultStripsNonMachineReadable pins that any non-machine-readable format (not json/sarif) wraps the writer in stripAnsi
cmd/opencodereview/output_file_test.go:717
Function
TestResolveOutputWriter_Stdout
--- resolveOutputWriter ---
cmd/opencodereview/output_file_test.go:177
Function
TestResolveProviderCaseInsensitive
(t *testing.T)
acp/internal/intent/llm/resolve_test.go:92
Function
TestResolveRepoDir_EmptyUsesWd
(t *testing.T)
cmd/opencodereview/git_test.go:122
Function
TestResolveRepoDir_NotGitRepo
(t *testing.T)
cmd/opencodereview/git_test.go:111
Function
TestResolveRepoDir_ValidGitRepo
(t *testing.T)
cmd/opencodereview/git_test.go:100
Function
TestResolveReviewMaxTools
(t *testing.T)
cmd/opencodereview/review_cmd_test.go:60
Function
TestResolveRuleEntries_AbsolutePath
(t *testing.T)
internal/config/rules/system_rules_test.go:1412
Function
TestResolveRuleEntries_BasicFile
── resolveRuleEntries tests ──
internal/config/rules/system_rules_test.go:1359
Function
TestResolveRuleEntries_EmptyRepoDirAbsolute
(t *testing.T)
internal/config/rules/system_rules_test.go:1722
Function
TestResolveRuleEntries_EmptyRepoDirRelative
(t *testing.T)
internal/config/rules/system_rules_test.go:1710
Function
TestResolveRuleEntries_EmptyRule
(t *testing.T)
internal/config/rules/system_rules_test.go:1467
Function
TestResolveRuleEntries_GlobalRuleFileResolution
(t *testing.T)
internal/config/rules/system_rules_test.go:1739
Function
TestResolveRuleEntries_MarkdownExtension
(t *testing.T)
internal/config/rules/system_rules_test.go:1530
Function
TestResolveRuleEntries_MissingFile
(t *testing.T)
internal/config/rules/system_rules_test.go:1398
Function
TestResolveRuleEntries_MultiLineInline
(t *testing.T)
internal/config/rules/system_rules_test.go:1380
Function
TestResolveRuleEntries_PathTraversalBlocked
── path traversal tests ──
internal/config/rules/system_rules_test.go:1686
Function
TestResolveRuleEntries_ProjectConfinesAbsolutePath
TestResolveRuleEntries_ProjectConfinesAbsolutePath verifies that with a confineRoot (the untrusted project rule layer) an absolute rule path is confin
internal/config/rules/system_rules_test.go:1779
← previous
next →
5,401–5,500 of 7,169, ranked by callers