MCPcopy Create free account

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

Functions3,737 in github.com/alibaba/open-code-review

FunctionTestApplyManualConfig_DoubleWritesProtocolAndUseAnthropic
TestApplyManualConfig_DoubleWritesProtocolAndUseAnthropic verifies the dual write: cfg.Llm.Protocol always gets the canonical name, and UseAnthropic i
cmd/opencodereview/provider_tui_test.go:2877
FunctionTestApplyManualConfig_MissingModel
(t *testing.T)
cmd/opencodereview/provider_cmd_test.go:183
FunctionTestApplyManualConfig_MissingURL
(t *testing.T)
cmd/opencodereview/provider_cmd_test.go:176
FunctionTestApplyModelDeleteToEntry
(t *testing.T)
cmd/opencodereview/provider_tui_rollback_test.go:39
FunctionTestApplyOfficialProviderConfig_EmptyKeyClearsSavedAPIKey
(t *testing.T)
cmd/opencodereview/provider_cmd_test.go:211
FunctionTestApplyOfficialProviderConfig_MissingFields
(t *testing.T)
cmd/opencodereview/provider_cmd_test.go:204
FunctionTestApplyOfficialProviderConfig_UsesSessionModelPick
(t *testing.T)
cmd/opencodereview/provider_cmd_test.go:305
FunctionTestApplyOfficialProviderConfig_Validation
TestApplyOfficialProviderConfig_Validation covers the pre-save validation branches (empty provider, empty model, missing API key) that reject the requ
cmd/opencodereview/provider_config_apply_test.go:15
FunctionTestApplyProviderDeletions
(t *testing.T)
cmd/opencodereview/provider_cmd_test.go:73
FunctionTestApplyProviderDeletions_ActiveCleared
(t *testing.T)
cmd/opencodereview/provider_cmd_test.go:107
FunctionTestApplyProviderDeletions_SkipsNotFound
(t *testing.T)
cmd/opencodereview/provider_cmd_test.go:130
FunctionTestApplyProviderField
TestApplyProviderField exercises every field branch of applyProviderField, including the JSON/parse error paths and the unknown-field default.
cmd/opencodereview/apply_provider_field_test.go:12
FunctionTestApplyResumeLine_InvalidJSON
(t *testing.T)
internal/session/resume_test.go:370
FunctionTestApplyResumeLine_ReviewItemDone
(t *testing.T)
internal/session/resume_test.go:254
FunctionTestApplyResumeLine_ReviewItemDone_EmptyFingerprint
(t *testing.T)
internal/session/resume_test.go:298
FunctionTestApplyResumeLine_ReviewItemDone_FallbackToNewPath
(t *testing.T)
internal/session/resume_test.go:279
FunctionTestApplyResumeLine_ReviewItemFailed
(t *testing.T)
internal/session/resume_test.go:327
FunctionTestApplyResumeLine_ReviewItemFailed_EmptyFingerprint
(t *testing.T)
internal/session/resume_test.go:343
FunctionTestApplyResumeLine_ReviewItemReused
(t *testing.T)
internal/session/resume_test.go:312
FunctionTestApplyResumeLine_SessionStart
--- applyResumeLine ---
internal/session/resume_test.go:228
FunctionTestApplyResumeLine_UnknownType
(t *testing.T)
internal/session/resume_test.go:359
FunctionTestApplyResumeReusesCompletedItemsAcrossModels
(t *testing.T)
internal/agent/agent_test.go:562
FunctionTestApplySessionStart_OverridesRepoDir
(t *testing.T)
internal/session/resume_test.go:388
FunctionTestApplySessionStart_PreservesRepoDirWhenCwdEmpty
--- applySessionStart ---
internal/session/resume_test.go:380
FunctionTestApplySessionStart_PreservesSessionIDWhenEmpty
(t *testing.T)
internal/session/resume_test.go:396
FunctionTestApplySessionStart_SetsAllFields
(t *testing.T)
internal/session/resume_test.go:404
FunctionTestApplySessionStart_SetsScanPathScope
(t *testing.T)
internal/session/resume_test.go:652
FunctionTestBackgroundFromCommitThenFile
TestBackgroundFromCommitThenFile reproduces the resolution order used by runReview when --background-file is supplied but --background is not: the inl
cmd/opencodereview/background_file_test.go:340
FunctionTestBlurCPStep_AllSteps
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:391
FunctionTestBlurManualStep_AllSteps
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:505
FunctionTestBudgetGate_StopsBeforeExceeding
TestBudgetGate_StopsBeforeExceeding verifies the per-file gate stops dispatch once the running token total + next-file look-ahead would blow the budge
internal/scan/budget_test.go:78
FunctionTestBudgetGate_Unlimited
TestBudgetGate_Unlimited verifies MaxTokensBudget=0 runs every file.
internal/scan/budget_test.go:126
FunctionTestBuildAllowedHosts
(t *testing.T)
internal/viewer/hostguard_test.go:51
FunctionTestBuildAllowedHosts_BracketedIPv6
(t *testing.T)
internal/viewer/server_extra_test.go:259
FunctionTestBuildAnthropicParams_AllRoles
TestBuildAnthropicParams_AllRoles exercises every message-role branch (system, tool-result flushing, assistant with/without tool calls, user string an
internal/llm/client_params_test.go:76
FunctionTestBuildAnthropicParams_CacheControl
(t *testing.T)
internal/llm/client_test.go:108
FunctionTestBuildAnthropicParams_CacheControl_NoSystem
(t *testing.T)
internal/llm/client_test.go:202
FunctionTestBuildAnthropicParams_CacheControl_NoTools
(t *testing.T)
internal/llm/client_test.go:175
FunctionTestBuildAnthropicParams_DefaultMaxTokens
TestBuildAnthropicParams_DefaultMaxTokens verifies the fallback to 8192 when the request omits MaxTokens, and that optional fields stay unset.
internal/llm/client_params_test.go:142
FunctionTestBuildAnthropicParams_InvalidToolArgs
TestBuildAnthropicParams_InvalidToolArgs covers the error branch where an assistant tool call carries malformed JSON arguments.
internal/llm/client_params_test.go:126
FunctionTestBuildAnthropicParams_NullToolCallArguments
(t *testing.T)
internal/llm/client_test.go:230
FunctionTestBuildBadge
(t *testing.T)
cmd/opencodereview/output_test.go:13
FunctionTestBuildChangeFilesExcept
(t *testing.T)
internal/agent/agent_test.go:658
FunctionTestBuildDedupCommentsJSON_IncludesIDsAndKeyFields
(t *testing.T)
internal/scan/dedup_test.go:93
FunctionTestBuildDiffLines
(t *testing.T)
cmd/opencodereview/output_helpers_test.go:141
FunctionTestBuildFilterCommentsJSON
(t *testing.T)
internal/agent/agent_test.go:90
FunctionTestBuildGrepArgs_CaseInsensitive
(t *testing.T)
internal/tool/code_search_test.go:80
FunctionTestBuildGrepArgs_CaseSensitive
(t *testing.T)
internal/tool/code_search_test.go:73
FunctionTestBuildGrepArgs_CommitMode
(t *testing.T)
internal/tool/code_search_test.go:35
FunctionTestBuildGrepArgs_FixedString
(t *testing.T)
internal/tool/code_search_test.go:95
FunctionTestBuildGrepArgs_NoIndex
(t *testing.T)
internal/tool/code_search_test.go:594
FunctionTestBuildGrepArgs_PatternStartingWithDash
(t *testing.T)
internal/tool/code_search_test.go:63
FunctionTestBuildGrepArgs_PerlRegexp
(t *testing.T)
internal/tool/code_search_test.go:87
FunctionTestBuildGrepArgs_RejectsOptionLikeRef
(t *testing.T)
internal/tool/code_search_test.go:44
FunctionTestBuildGrepArgs_WorkspaceMode
(t *testing.T)
internal/tool/code_search_test.go:19
FunctionTestBuildMessageXML
(t *testing.T)
internal/llmloop/compression_test.go:163
FunctionTestBuildMessageXML
(t *testing.T)
internal/agent/util_test.go:131
FunctionTestBuildOpenAIParams_AllRoles
TestBuildOpenAIParams_AllRoles exercises every message-role branch plus the tools/max-tokens/temperature options in buildOpenAIParams.
internal/llm/client_params_test.go:12
FunctionTestBuildOpenAIParams_Minimal
TestBuildOpenAIParams_Minimal verifies that optional fields stay unset when the request omits tools, max tokens, and temperature.
internal/llm/client_params_test.go:57
FunctionTestBuildResponsesParams_AssistantTextPlusToolCalls
(t *testing.T)
internal/llm/responses_client_test.go:166
FunctionTestBuildResponsesParams_MaxTokensAndTemperature
(t *testing.T)
internal/llm/responses_client_test.go:275
FunctionTestBuildResponsesParams_NoInstructionsWhenNoSystem
(t *testing.T)
internal/llm/responses_client_test.go:92
FunctionTestBuildResponsesParams_StoreAndCacheKey
(t *testing.T)
internal/llm/responses_client_test.go:235
FunctionTestBuildResponsesParams_SystemToInstructions
(t *testing.T)
internal/llm/responses_client_test.go:65
FunctionTestBuildResponsesParams_ToolCallItems
(t *testing.T)
internal/llm/responses_client_test.go:112
FunctionTestBuildResponsesParams_Tools
(t *testing.T)
internal/llm/responses_client_test.go:195
FunctionTestBuildSummaryCommentsList_TruncatesAndOneLines
(t *testing.T)
internal/scan/agent_test.go:140
FunctionTestBuildToolDefs
(t *testing.T)
internal/agent/agent_test.go:446
FunctionTestBuildToolInputSchema
TestBuildToolInputSchema covers properties, required filtering (non-string entries dropped), and extra-field passthrough.
internal/llm/client_params_test.go:166
FunctionTestBuildToolInputSchema_Empty
TestBuildToolInputSchema_Empty ensures a bare schema stays empty.
internal/llm/client_params_test.go:190
FunctionTestBuildToolRegistry
(t *testing.T)
cmd/opencodereview/git_test.go:166
FunctionTestBuiltinToolProvider
(t *testing.T)
internal/tool/stub_test.go:29
FunctionTestCancelPendingCompression_NilJob
(t *testing.T)
internal/llmloop/runner_test.go:182
FunctionTestCancelPendingCompression_WithJob
(t *testing.T)
internal/llmloop/runner_test.go:188
FunctionTestCanonicalPathResolvesSymlink
(t *testing.T)
internal/pathutil/path_test.go:39
FunctionTestCanonicalPath_NestedSymlink
(t *testing.T)
internal/pathutil/path_test.go:92
FunctionTestCanonicalPath_NonExistentPath
(t *testing.T)
internal/pathutil/path_test.go:60
FunctionTestCanonicalPath_RelativePath
(t *testing.T)
internal/pathutil/path_test.go:67
FunctionTestCanonicalRemote
(t *testing.T)
internal/diff/git_resolve_test.go:161
FunctionTestChatResponse_Content
(t *testing.T)
internal/llm/message_test.go:122
FunctionTestChatResponse_Content_Empty
(t *testing.T)
internal/llm/message_test.go:134
FunctionTestChatResponse_Content_FallbackToReasoning
(t *testing.T)
internal/llm/message_test.go:141
FunctionTestChatResponse_Content_NilContent
(t *testing.T)
internal/llm/message_test.go:153
FunctionTestChatResponse_Content_StripsThinkTags
(t *testing.T)
internal/llm/message_test.go:164
FunctionTestChatResponse_ToolCalls
(t *testing.T)
internal/llm/message_test.go:176
FunctionTestChatResponse_ToolCalls_Empty
(t *testing.T)
internal/llm/message_test.go:196
FunctionTestCheckMetricErr
(t *testing.T)
internal/telemetry/metrics_test.go:29
FunctionTestChecksumFilenameNoVersion
(t *testing.T)
internal/release/asset_naming_test.go:177
FunctionTestClassifyItemError
classifyItemError maps a per-file review error to a coverage FailureClass and a static, leak-free reason. The mapping must recognize the sentinels thr
internal/agent/coverage_test.go:692
FunctionTestClearCfgActiveModelIfDeleted
(t *testing.T)
cmd/opencodereview/provider_tui_rollback_test.go:50
FunctionTestClient_NameAndTools
(t *testing.T)
internal/mcp/client_test.go:203
FunctionTestCloneCustomProviderList
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:623
FunctionTestCloneCustomProvidersMap
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:601
FunctionTestCloneCustomProvidersMap_Nil
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:616
FunctionTestCloneProviderEntry_NilExtraBody
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:237
FunctionTestCloneProviderEntry_NilRetryCodesAndExtraHeaders
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:279
FunctionTestCloneProviderEntry_TimeoutAndRetryCodes
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:248
FunctionTestCloneProviderEntry_WithExtraBody
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:201
FunctionTestCodeCommentProvider_Execute
(t *testing.T)
internal/tool/code_comment_test.go:296
FunctionTestCodeReviewResult_JSON
(t *testing.T)
internal/model/model_test.go:178
← previousnext →1,701–1,800 of 3,737, ranked by callers