MCPcopy Create free account

hub / github.com/alibaba/open-code-review / functions

Functions7,169 in github.com/alibaba/open-code-review

FunctionTestResolveEndpoint_ProviderAPIKeyCmd
(a) api_key_cmd resolves when no static key is present.
internal/llm/resolver_keycmd_test.go:33
FunctionTestResolveEndpoint_ProviderAPIKeyCmdFailsHard
(d) a failing api_key_cmd is a hard error, not a silent fallback.
internal/llm/resolver_keycmd_test.go:307
FunctionTestResolveEndpoint_ProviderAPIKeyEnvFallback
(t *testing.T)
internal/llm/resolver_test.go:759
FunctionTestResolveEndpoint_ProviderAnthropic
(t *testing.T)
internal/llm/resolver_test.go:612
FunctionTestResolveEndpoint_ProviderAnthropicURLHasMessagesSuffix
(t *testing.T)
internal/llm/resolver_test.go:1077
FunctionTestResolveEndpoint_ProviderConfigNegativeTimeoutSec
(t *testing.T)
internal/llm/resolver_test.go:2114
FunctionTestResolveEndpoint_ProviderConfigTimeoutSec
(t *testing.T)
internal/llm/resolver_test.go:2086
FunctionTestResolveEndpoint_ProviderEntryModelOverridesDefault
(t *testing.T)
internal/llm/resolver_test.go:703
FunctionTestResolveEndpoint_ProviderExtraBody
(t *testing.T)
internal/llm/resolver_test.go:1101
FunctionTestResolveEndpoint_ProviderExtraHeaders
(t *testing.T)
internal/llm/resolver_test.go:1790
FunctionTestResolveEndpoint_ProviderMissingAPIKey
(t *testing.T)
internal/llm/resolver_test.go:859
FunctionTestResolveEndpoint_ProviderModelOverride
(t *testing.T)
internal/llm/resolver_test.go:678
FunctionTestResolveEndpoint_ProviderNotConfigured
(t *testing.T)
internal/llm/resolver_test.go:880
FunctionTestResolveEndpoint_ProviderOpenAI
(t *testing.T)
internal/llm/resolver_test.go:648
FunctionTestResolveEndpoint_ProviderRetryCodes
(t *testing.T)
internal/llm/resolver_test.go:2636
FunctionTestResolveEndpoint_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
FunctionTestResolveEndpoint_RedundantRetryCodesFiltered
(t *testing.T)
internal/llm/resolver_test.go:2716
FunctionTestResolveEndpoint_ResponsesURLNotMutated
TestResolveEndpoint_ResponsesURLNotMutated makes sure the resolver leaves openai-responses URLs alone — only anthropic gets /v1/messages appended.
internal/llm/resolver_test.go:2447
FunctionTestResolveEndpoint_SessionKeyPlaceholderPreserved
(t *testing.T)
internal/llm/resolver_test.go:1856
FunctionTestResolveEndpoint_UnlistedConfiguredModelDoesNotWarn
(t *testing.T)
internal/llm/resolver_test.go:1451
FunctionTestResolveEndpoint_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
FunctionTestResolveEndpoint_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
FunctionTestResolveEndpoint_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
FunctionTestResolveEnv
(t *testing.T)
internal/telemetry/config_test.go:34
FunctionTestResolveErrors
(t *testing.T)
acp/internal/intent/llm/resolve_test.go:102
FunctionTestResolveFlagsWinOverEnvironment
(t *testing.T)
acp/internal/intent/llm/resolve_test.go:71
FunctionTestResolveFromEnvironment
(t *testing.T)
acp/internal/intent/llm/resolve_test.go:53
FunctionTestResolveFromHunk_AddedLines
--------------------------------------------------------------------------- resolveFromHunk integration tests ----------------------------------------
internal/diff/resolver_test.go:548
FunctionTestResolveFromHunk_AddedWithContext
(t *testing.T)
internal/diff/resolver_test.go:698
FunctionTestResolveFromHunk_BlankLineRetry
(t *testing.T)
internal/diff/resolver_test.go:751
FunctionTestResolveFromHunk_ContextLinesOnly
(t *testing.T)
internal/diff/resolver_test.go:596
FunctionTestResolveFromHunk_MultiHunkMatchInSecond
(t *testing.T)
internal/diff/resolver_test.go:670
FunctionTestResolveFromHunk_NewSideAcrossDeletedLines
(t *testing.T)
internal/diff/resolver_test.go:725
FunctionTestResolveFromHunk_NewSidePriority
(t *testing.T)
internal/diff/resolver_test.go:643
FunctionTestResolveFromHunk_OldSideAcrossAddedLines
(t *testing.T)
internal/diff/resolver_test.go:572
FunctionTestResolveFromHunk_SingleAddedLine
(t *testing.T)
internal/diff/resolver_test.go:622
FunctionTestResolveGroupSystemRule
(t *testing.T)
internal/agent/grouping_test.go:576
FunctionTestResolveIdentityMatchesRunPath
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
FunctionTestResolveIdentityTracksConfigChanges
(t *testing.T)
internal/agent/identity_test.go:98
FunctionTestResolveInputBeforeDiffCommit
(t *testing.T)
internal/agent/identity_test.go:171
FunctionTestResolveInputBeforeDiffRejectsInvalidRefs
(t *testing.T)
internal/agent/identity_test.go:186
FunctionTestResolveInput_MergeCommit
(t *testing.T)
internal/diff/git_resolve_test.go:111
FunctionTestResolveInput_Range
(t *testing.T)
internal/diff/git_resolve_test.go:50
FunctionTestResolveInput_RootCommit
(t *testing.T)
internal/diff/git_resolve_test.go:93
FunctionTestResolveInput_SingleParentCommit
(t *testing.T)
internal/diff/git_resolve_test.go:73
FunctionTestResolveInput_UnbornWorkspace
(t *testing.T)
internal/diff/git_resolve_test.go:211
FunctionTestResolveInput_Workspace
(t *testing.T)
internal/diff/git_resolve_test.go:144
FunctionTestResolveInvalidConfiguration
(test *testing.T)
internal/config/toolsconfig/toolsconfig_test.go:185
FunctionTestResolveKeyCmd
(t *testing.T)
internal/llm/keycmd_test.go:15
FunctionTestResolveKeyCmd
(t *testing.T)
internal/llm/keycmd_windows_test.go:40
FunctionTestResolveKeyCmd_LabelInError
(t *testing.T)
internal/llm/keycmd_test.go:196
FunctionTestResolveKeyCmd_LabelInError
(t *testing.T)
internal/llm/keycmd_windows_test.go:150
FunctionTestResolveKeyCmd_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
FunctionTestResolveKeyCmd_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
FunctionTestResolveKeyCmd_Timeout
(t *testing.T)
internal/llm/keycmd_test.go:114
FunctionTestResolveKeyCmd_Timeout
(t *testing.T)
internal/llm/keycmd_windows_test.go:98
FunctionTestResolveKeyCmd_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
FunctionTestResolveLang
(t *testing.T)
internal/config/template/template_test.go:493
FunctionTestResolveLang
(t *testing.T)
internal/config/testconnection/testconnection_test.go:42
FunctionTestResolveLineNumbers_AlreadyResolved
--------------------------------------------------------------------------- ResolveLineNumbers integration tests (additional scenarios) --------------
internal/diff/resolver_test.go:858
FunctionTestResolveLineNumbers_DiffMarkerInExistingCode
(t *testing.T)
internal/diff/resolver_test.go:962
FunctionTestResolveLineNumbers_EmptyInputs
(t *testing.T)
internal/diff/resolver_test.go:275
FunctionTestResolveLineNumbers_FallbackToFileContent
(t *testing.T)
internal/diff/resolver_test.go:95
FunctionTestResolveLineNumbers_FallbackToFileContent_AllBlankExistingCode
(t *testing.T)
internal/diff/resolver_test.go:214
FunctionTestResolveLineNumbers_FallbackToFileContent_BlankLines
(t *testing.T)
internal/diff/resolver_test.go:123
FunctionTestResolveLineNumbers_FallbackToFileContent_CRLF
(t *testing.T)
internal/diff/resolver_test.go:178
FunctionTestResolveLineNumbers_FallbackToFileContent_FirstMatchWins
(t *testing.T)
internal/diff/resolver_test.go:196
FunctionTestResolveLineNumbers_FallbackToFileContent_LeadingBlanks
(t *testing.T)
internal/diff/resolver_test.go:160
FunctionTestResolveLineNumbers_FallbackToFileContent_MultipleBlankLines
(t *testing.T)
internal/diff/resolver_test.go:142
FunctionTestResolveLineNumbers_MixedStrategies
(t *testing.T)
internal/diff/resolver_test.go:927
FunctionTestResolveLineNumbers_MultiLineHunkMatch
(t *testing.T)
internal/diff/resolver_test.go:65
FunctionTestResolveLineNumbers_MultipleCommentsOnSameFile
(t *testing.T)
internal/diff/resolver_test.go:870
FunctionTestResolveLineNumbers_NoExistingCode
(t *testing.T)
internal/diff/resolver_test.go:247
FunctionTestResolveLineNumbers_NoMatchKeepsZero
(t *testing.T)
internal/diff/resolver_test.go:232
FunctionTestResolveLineNumbers_OldPathMapping
(t *testing.T)
internal/diff/resolver_test.go:905
FunctionTestResolveLineNumbers_PathNotFound
(t *testing.T)
internal/diff/resolver_test.go:261
FunctionTestResolveLineNumbers_SingleLineHunkMatch
(t *testing.T)
internal/diff/resolver_test.go:21
FunctionTestResolveLineNumbers_WhitespaceTolerant
(t *testing.T)
internal/diff/resolver_test.go:49
FunctionTestResolveMaxTokensPrecedence
(t *testing.T)
cmd/opencodereview/shared_test.go:19
FunctionTestResolveOrderedDefinitions
(test *testing.T)
internal/config/toolsconfig/toolsconfig_test.go:117
FunctionTestResolveOutputWriter_DirectoryTarget
(t *testing.T)
cmd/opencodereview/output_file_test.go:192
FunctionTestResolveOutputWriter_MissingParent
(t *testing.T)
cmd/opencodereview/output_file_test.go:200
FunctionTestResolveOutputWriter_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
FunctionTestResolveOutputWriter_Stdout
--- resolveOutputWriter ---
cmd/opencodereview/output_file_test.go:177
FunctionTestResolveProviderCaseInsensitive
(t *testing.T)
acp/internal/intent/llm/resolve_test.go:92
FunctionTestResolveRepoDir_EmptyUsesWd
(t *testing.T)
cmd/opencodereview/git_test.go:122
FunctionTestResolveRepoDir_NotGitRepo
(t *testing.T)
cmd/opencodereview/git_test.go:111
FunctionTestResolveRepoDir_ValidGitRepo
(t *testing.T)
cmd/opencodereview/git_test.go:100
FunctionTestResolveReviewMaxTools
(t *testing.T)
cmd/opencodereview/review_cmd_test.go:60
FunctionTestResolveRuleEntries_AbsolutePath
(t *testing.T)
internal/config/rules/system_rules_test.go:1412
FunctionTestResolveRuleEntries_BasicFile
── resolveRuleEntries tests ──
internal/config/rules/system_rules_test.go:1359
FunctionTestResolveRuleEntries_EmptyRepoDirAbsolute
(t *testing.T)
internal/config/rules/system_rules_test.go:1722
FunctionTestResolveRuleEntries_EmptyRepoDirRelative
(t *testing.T)
internal/config/rules/system_rules_test.go:1710
FunctionTestResolveRuleEntries_EmptyRule
(t *testing.T)
internal/config/rules/system_rules_test.go:1467
FunctionTestResolveRuleEntries_GlobalRuleFileResolution
(t *testing.T)
internal/config/rules/system_rules_test.go:1739
FunctionTestResolveRuleEntries_MarkdownExtension
(t *testing.T)
internal/config/rules/system_rules_test.go:1530
FunctionTestResolveRuleEntries_MissingFile
(t *testing.T)
internal/config/rules/system_rules_test.go:1398
FunctionTestResolveRuleEntries_MultiLineInline
(t *testing.T)
internal/config/rules/system_rules_test.go:1380
FunctionTestResolveRuleEntries_PathTraversalBlocked
── path traversal tests ──
internal/config/rules/system_rules_test.go:1686
FunctionTestResolveRuleEntries_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
← previousnext →5,401–5,500 of 7,169, ranked by callers