Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alibaba/open-code-review
/ functions
Functions
3,737 in github.com/alibaba/open-code-review
⨍
Functions
3,737
◇
Types & classes
339
Function
TestApplyManualConfig_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
Function
TestApplyManualConfig_MissingModel
(t *testing.T)
cmd/opencodereview/provider_cmd_test.go:183
Function
TestApplyManualConfig_MissingURL
(t *testing.T)
cmd/opencodereview/provider_cmd_test.go:176
Function
TestApplyModelDeleteToEntry
(t *testing.T)
cmd/opencodereview/provider_tui_rollback_test.go:39
Function
TestApplyOfficialProviderConfig_EmptyKeyClearsSavedAPIKey
(t *testing.T)
cmd/opencodereview/provider_cmd_test.go:211
Function
TestApplyOfficialProviderConfig_MissingFields
(t *testing.T)
cmd/opencodereview/provider_cmd_test.go:204
Function
TestApplyOfficialProviderConfig_UsesSessionModelPick
(t *testing.T)
cmd/opencodereview/provider_cmd_test.go:305
Function
TestApplyOfficialProviderConfig_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
Function
TestApplyProviderDeletions
(t *testing.T)
cmd/opencodereview/provider_cmd_test.go:73
Function
TestApplyProviderDeletions_ActiveCleared
(t *testing.T)
cmd/opencodereview/provider_cmd_test.go:107
Function
TestApplyProviderDeletions_SkipsNotFound
(t *testing.T)
cmd/opencodereview/provider_cmd_test.go:130
Function
TestApplyProviderField
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
Function
TestApplyResumeLine_InvalidJSON
(t *testing.T)
internal/session/resume_test.go:370
Function
TestApplyResumeLine_ReviewItemDone
(t *testing.T)
internal/session/resume_test.go:254
Function
TestApplyResumeLine_ReviewItemDone_EmptyFingerprint
(t *testing.T)
internal/session/resume_test.go:298
Function
TestApplyResumeLine_ReviewItemDone_FallbackToNewPath
(t *testing.T)
internal/session/resume_test.go:279
Function
TestApplyResumeLine_ReviewItemFailed
(t *testing.T)
internal/session/resume_test.go:327
Function
TestApplyResumeLine_ReviewItemFailed_EmptyFingerprint
(t *testing.T)
internal/session/resume_test.go:343
Function
TestApplyResumeLine_ReviewItemReused
(t *testing.T)
internal/session/resume_test.go:312
Function
TestApplyResumeLine_SessionStart
--- applyResumeLine ---
internal/session/resume_test.go:228
Function
TestApplyResumeLine_UnknownType
(t *testing.T)
internal/session/resume_test.go:359
Function
TestApplyResumeReusesCompletedItemsAcrossModels
(t *testing.T)
internal/agent/agent_test.go:562
Function
TestApplySessionStart_OverridesRepoDir
(t *testing.T)
internal/session/resume_test.go:388
Function
TestApplySessionStart_PreservesRepoDirWhenCwdEmpty
--- applySessionStart ---
internal/session/resume_test.go:380
Function
TestApplySessionStart_PreservesSessionIDWhenEmpty
(t *testing.T)
internal/session/resume_test.go:396
Function
TestApplySessionStart_SetsAllFields
(t *testing.T)
internal/session/resume_test.go:404
Function
TestApplySessionStart_SetsScanPathScope
(t *testing.T)
internal/session/resume_test.go:652
Function
TestBackgroundFromCommitThenFile
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
Function
TestBlurCPStep_AllSteps
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:391
Function
TestBlurManualStep_AllSteps
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:505
Function
TestBudgetGate_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
Function
TestBudgetGate_Unlimited
TestBudgetGate_Unlimited verifies MaxTokensBudget=0 runs every file.
internal/scan/budget_test.go:126
Function
TestBuildAllowedHosts
(t *testing.T)
internal/viewer/hostguard_test.go:51
Function
TestBuildAllowedHosts_BracketedIPv6
(t *testing.T)
internal/viewer/server_extra_test.go:259
Function
TestBuildAnthropicParams_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
Function
TestBuildAnthropicParams_CacheControl
(t *testing.T)
internal/llm/client_test.go:108
Function
TestBuildAnthropicParams_CacheControl_NoSystem
(t *testing.T)
internal/llm/client_test.go:202
Function
TestBuildAnthropicParams_CacheControl_NoTools
(t *testing.T)
internal/llm/client_test.go:175
Function
TestBuildAnthropicParams_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
Function
TestBuildAnthropicParams_InvalidToolArgs
TestBuildAnthropicParams_InvalidToolArgs covers the error branch where an assistant tool call carries malformed JSON arguments.
internal/llm/client_params_test.go:126
Function
TestBuildAnthropicParams_NullToolCallArguments
(t *testing.T)
internal/llm/client_test.go:230
Function
TestBuildBadge
(t *testing.T)
cmd/opencodereview/output_test.go:13
Function
TestBuildChangeFilesExcept
(t *testing.T)
internal/agent/agent_test.go:658
Function
TestBuildDedupCommentsJSON_IncludesIDsAndKeyFields
(t *testing.T)
internal/scan/dedup_test.go:93
Function
TestBuildDiffLines
(t *testing.T)
cmd/opencodereview/output_helpers_test.go:141
Function
TestBuildFilterCommentsJSON
(t *testing.T)
internal/agent/agent_test.go:90
Function
TestBuildGrepArgs_CaseInsensitive
(t *testing.T)
internal/tool/code_search_test.go:80
Function
TestBuildGrepArgs_CaseSensitive
(t *testing.T)
internal/tool/code_search_test.go:73
Function
TestBuildGrepArgs_CommitMode
(t *testing.T)
internal/tool/code_search_test.go:35
Function
TestBuildGrepArgs_FixedString
(t *testing.T)
internal/tool/code_search_test.go:95
Function
TestBuildGrepArgs_NoIndex
(t *testing.T)
internal/tool/code_search_test.go:594
Function
TestBuildGrepArgs_PatternStartingWithDash
(t *testing.T)
internal/tool/code_search_test.go:63
Function
TestBuildGrepArgs_PerlRegexp
(t *testing.T)
internal/tool/code_search_test.go:87
Function
TestBuildGrepArgs_RejectsOptionLikeRef
(t *testing.T)
internal/tool/code_search_test.go:44
Function
TestBuildGrepArgs_WorkspaceMode
(t *testing.T)
internal/tool/code_search_test.go:19
Function
TestBuildMessageXML
(t *testing.T)
internal/llmloop/compression_test.go:163
Function
TestBuildMessageXML
(t *testing.T)
internal/agent/util_test.go:131
Function
TestBuildOpenAIParams_AllRoles
TestBuildOpenAIParams_AllRoles exercises every message-role branch plus the tools/max-tokens/temperature options in buildOpenAIParams.
internal/llm/client_params_test.go:12
Function
TestBuildOpenAIParams_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
Function
TestBuildResponsesParams_AssistantTextPlusToolCalls
(t *testing.T)
internal/llm/responses_client_test.go:166
Function
TestBuildResponsesParams_MaxTokensAndTemperature
(t *testing.T)
internal/llm/responses_client_test.go:275
Function
TestBuildResponsesParams_NoInstructionsWhenNoSystem
(t *testing.T)
internal/llm/responses_client_test.go:92
Function
TestBuildResponsesParams_StoreAndCacheKey
(t *testing.T)
internal/llm/responses_client_test.go:235
Function
TestBuildResponsesParams_SystemToInstructions
(t *testing.T)
internal/llm/responses_client_test.go:65
Function
TestBuildResponsesParams_ToolCallItems
(t *testing.T)
internal/llm/responses_client_test.go:112
Function
TestBuildResponsesParams_Tools
(t *testing.T)
internal/llm/responses_client_test.go:195
Function
TestBuildSummaryCommentsList_TruncatesAndOneLines
(t *testing.T)
internal/scan/agent_test.go:140
Function
TestBuildToolDefs
(t *testing.T)
internal/agent/agent_test.go:446
Function
TestBuildToolInputSchema
TestBuildToolInputSchema covers properties, required filtering (non-string entries dropped), and extra-field passthrough.
internal/llm/client_params_test.go:166
Function
TestBuildToolInputSchema_Empty
TestBuildToolInputSchema_Empty ensures a bare schema stays empty.
internal/llm/client_params_test.go:190
Function
TestBuildToolRegistry
(t *testing.T)
cmd/opencodereview/git_test.go:166
Function
TestBuiltinToolProvider
(t *testing.T)
internal/tool/stub_test.go:29
Function
TestCancelPendingCompression_NilJob
(t *testing.T)
internal/llmloop/runner_test.go:182
Function
TestCancelPendingCompression_WithJob
(t *testing.T)
internal/llmloop/runner_test.go:188
Function
TestCanonicalPathResolvesSymlink
(t *testing.T)
internal/pathutil/path_test.go:39
Function
TestCanonicalPath_NestedSymlink
(t *testing.T)
internal/pathutil/path_test.go:92
Function
TestCanonicalPath_NonExistentPath
(t *testing.T)
internal/pathutil/path_test.go:60
Function
TestCanonicalPath_RelativePath
(t *testing.T)
internal/pathutil/path_test.go:67
Function
TestCanonicalRemote
(t *testing.T)
internal/diff/git_resolve_test.go:161
Function
TestChatResponse_Content
(t *testing.T)
internal/llm/message_test.go:122
Function
TestChatResponse_Content_Empty
(t *testing.T)
internal/llm/message_test.go:134
Function
TestChatResponse_Content_FallbackToReasoning
(t *testing.T)
internal/llm/message_test.go:141
Function
TestChatResponse_Content_NilContent
(t *testing.T)
internal/llm/message_test.go:153
Function
TestChatResponse_Content_StripsThinkTags
(t *testing.T)
internal/llm/message_test.go:164
Function
TestChatResponse_ToolCalls
(t *testing.T)
internal/llm/message_test.go:176
Function
TestChatResponse_ToolCalls_Empty
(t *testing.T)
internal/llm/message_test.go:196
Function
TestCheckMetricErr
(t *testing.T)
internal/telemetry/metrics_test.go:29
Function
TestChecksumFilenameNoVersion
(t *testing.T)
internal/release/asset_naming_test.go:177
Function
TestClassifyItemError
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
Function
TestClearCfgActiveModelIfDeleted
(t *testing.T)
cmd/opencodereview/provider_tui_rollback_test.go:50
Function
TestClient_NameAndTools
(t *testing.T)
internal/mcp/client_test.go:203
Function
TestCloneCustomProviderList
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:623
Function
TestCloneCustomProvidersMap
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:601
Function
TestCloneCustomProvidersMap_Nil
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:616
Function
TestCloneProviderEntry_NilExtraBody
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:237
Function
TestCloneProviderEntry_NilRetryCodesAndExtraHeaders
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:279
Function
TestCloneProviderEntry_TimeoutAndRetryCodes
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:248
Function
TestCloneProviderEntry_WithExtraBody
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:201
Function
TestCodeCommentProvider_Execute
(t *testing.T)
internal/tool/code_comment_test.go:296
Function
TestCodeReviewResult_JSON
(t *testing.T)
internal/model/model_test.go:178
← previous
next →
1,701–1,800 of 3,737, ranked by callers