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
TestToolCallErrorStyle
(test *testing.T)
internal/telemetry/events_test.go:27
Function
TestToolCallIDsAcrossProcessRestarts
(t *testing.T)
acp/internal/adapter/presentation/tool_ids_test.go:19
Function
TestToolCall_EstimatedTokens
(t *testing.T)
internal/llm/client_test.go:2246
Function
TestToolCallsForJSON_KeepsFieldOrder
TestToolCallsForJSON_KeepsFieldOrder guards the llm_request byte format. A map projection sorts its keys, which would silently reorder every tool call
internal/session/history_test.go:676
Function
TestToolFailures_AreOrderedAndSnapshotIsolated
(t *testing.T)
internal/llmloop/runner_test.go:131
Function
TestToolResultMessages_AnswersEveryCall
TestToolResultMessages_AnswersEveryCall guards the protocol rule both supported families share: an assistant turn carrying tool calls must be followed
cmd/opencodereview/llm_cmd_test.go:142
Function
TestToolResultMessages_NoCalls
TestToolResultMessages_NoCalls returns nothing when the model called nothing.
cmd/opencodereview/llm_cmd_test.go:174
Function
TestToolRoundTripNote
TestToolRoundTripNote guards the reporting contract for #1357: a provider that never calls the test tool leaves the round trip unproven, and saying so
cmd/opencodereview/llm_cmd_test.go:40
Function
TestToolRoundTripNote_UnverifiedIsNotMistakenForSuccess
TestToolRoundTripNote_UnverifiedIsNotMistakenForSuccess keeps the two states textually distinct, so neither reads as the other.
cmd/opencodereview/llm_cmd_test.go:69
Function
TestTool_IsKnown
(t *testing.T)
internal/tool/definitions_test.go:41
Function
TestTool_Name
(t *testing.T)
internal/tool/definitions_test.go:35
Function
TestTraceIDFromContext_Empty
TestTraceIDFromContext_Empty covers the invalid-span branch: a bare context carries no span, so an empty string is returned.
internal/telemetry/traceid_test.go:13
Function
TestTraceIDFromContext_Valid
TestTraceIDFromContext_Valid covers the valid-span branch: a context carrying an active span reports its hex-encoded trace ID.
internal/telemetry/traceid_test.go:21
Function
TestTransitionRejectionStaysActionableWithNoName
An endpoint configured straight from environment variables resolves no provider name, so the rejection must not tell the user to run `--provider ` wit
internal/session/resume_identity_test.go:264
Function
TestTriggerAsyncCompression
(t *testing.T)
internal/llmloop/runner_test.go:469
Function
TestTrimGitUsage
(t *testing.T)
internal/tool/code_search_test.go:388
Function
TestTrimGitUsage_PreservesDiagnosticWithoutUsage
(t *testing.T)
internal/tool/code_search_test.go:425
Function
TestTrimGitUsage_WhitespaceOnly
(t *testing.T)
internal/tool/code_search_test.go:433
Function
TestTruncate
TestTruncate covers the remaining branches of truncate: newline/tab normalization, the short-enough pass-through, and the n<=1 ellipsis-only case.
cmd/opencodereview/session_cmd_test.go:488
Function
TestTruncateText
(t *testing.T)
internal/viewer/server_test.go:13
Function
TestTruncateTextAlwaysValidUTF8
TestTruncateTextAlwaysValidUTF8 guards the viewer's truncate template function against splitting multibyte runes (issue #1853): a byte-level cut insid
internal/viewer/server_test.go:43
Function
TestTruncateUnicode
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:476
Function
TestTryApplyPendingCompression_Applied
(t *testing.T)
internal/llmloop/runner_test.go:232
Function
TestTryApplyPendingCompression_NilJob
(t *testing.T)
internal/llmloop/runner_test.go:207
Function
TestTryApplyPendingCompression_NilRebuilt
(t *testing.T)
internal/llmloop/runner_test.go:270
Function
TestTryApplyPendingCompression_NotDone
(t *testing.T)
internal/llmloop/runner_test.go:216
Function
TestTryCCEnv
TestTryCCEnv covers tryCCEnv: the model-override branch, a successful resolve from the ANTHROPIC_* environment, and the incomplete-environment miss.
internal/llm/resolver_norm_test.go:42
Function
TestTryShellRC
(t *testing.T)
internal/llm/resolver_shellrc_test.go:30
Function
TestTurnDeadlineIncludesParsing
(t *testing.T)
acp/internal/adapter/lifecycle_test.go:19
Function
TestTypedErrorWithoutCause
(t *testing.T)
acp/internal/orchestrator/internal_test.go:184
Function
TestURLHelpers
(t *testing.T)
acp/internal/intent/llm/client_test.go:355
Function
TestURLPatternFormat
(t *testing.T)
internal/release/asset_naming_test.go:70
Function
TestURLPatternHTTPS
(t *testing.T)
internal/release/asset_naming_test.go:185
Function
TestURLPatternNoVersionInFilename
(t *testing.T)
internal/release/asset_naming_test.go:62
Function
TestUnknownLineageSchemaIsIgnored
An unknown lineage schema must be ignored rather than half-read: its fields may not mean what this build assumes.
internal/session/resume_identity_test.go:410
Function
TestUnquoteGitPath
(t *testing.T)
internal/diff/quotedpath_test.go:17
Function
TestUnreadOutputClosesConnection
(t *testing.T)
acp/internal/adapter/output_test.go:15
Function
TestUnreadableFindingKeepsTextWithoutNavigation
(t *testing.T)
acp/internal/adapter/locations_test.go:56
Function
TestUnsetActiveCustomProvider
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:730
Function
TestUnsetCustomProvider
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:700
Function
TestUnsetInvalidKey
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:768
Function
TestUnsetMCPServer
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:1008
Function
TestUnsetMCPServer_LastEntry
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:1038
Function
TestUnsetMCPServer_NotFound
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:1064
Function
TestUnsetMaxTokens
--- unset tests ---
cmd/opencodereview/config_cmd_test.go:673
Function
TestUnset_LoadErrors
TestUnset_LoadErrors covers the load-config error branch of each unset helper: when the config path holds invalid JSON, loadOrCreateConfig fails to pa
cmd/opencodereview/config_unset_error_test.go:15
Function
TestUntrackedFilesListPropagatesGitFailure
TestUntrackedFilesListPropagatesGitFailure separates the two cases the old `if err != nil || out == ""` folded together: a repository with no untracke
internal/diff/git_error_test.go:142
Function
TestUntrackedFilesList_PreservesAwkwardNames
TestUntrackedFilesList_PreservesAwkwardNames covers the untracked half of the same coverage gap. The listing ran `git ls-files --others` without -z an
internal/diff/quotedpath_test.go:253
Function
TestUpdateCustomModelInput
TestUpdateCustomModelInput drives the providerTUIModel custom-model input sub-mode: esc exit, empty enter, duplicate name, valid enter persists, and d
cmd/opencodereview/provider_tui_persist_test.go:110
Function
TestUpdateCustomProviderForm_Esc
TestUpdateCustomProviderForm_Esc covers esc on the name step (full reset) and on a later step (decrement / edit APIKey→BaseURL), plus ctrl+c.
cmd/opencodereview/provider_tui_customform_test.go:151
Function
TestUpdateCustomProviderForm_ProtocolNav
TestUpdateCustomProviderForm_ProtocolNav covers up/down protocol selection.
cmd/opencodereview/provider_tui_customform_test.go:257
Function
TestUpdateDeleteConfirm_SaveFailure
TestUpdateDeleteConfirm_SaveFailure drives the provider-delete confirm handler down its save-failure branch: the in-memory delete happens, saveConfig
cmd/opencodereview/provider_tui_savefail_test.go:36
Function
TestUpdateDeleteModelConfirm
TestUpdateDeleteModelConfirm covers y (confirm), n/esc (cancel), and ctrl+c.
cmd/opencodereview/provider_tui_modeltui_test.go:154
Function
TestUpdateDeleteModelConfirm_ProviderTUI
TestUpdateDeleteModelConfirm covers the key branches of the delete-model confirmation handler: cancel (n/esc), ctrl+c quit, and the default-tab no-op.
cmd/opencodereview/provider_tui_deleteconfirm_test.go:14
Function
TestUpdateManualForm_CtrlC
TestUpdateManualForm_CtrlC covers the ctrl+c cancel branch.
cmd/opencodereview/provider_tui_manualenter_test.go:181
Function
TestUpdateManualForm_Esc
TestUpdateManualForm_Esc covers the esc branches: on the URL step the form is dismissed and inputs reset (with and without an existing config), while
cmd/opencodereview/provider_tui_manualenter_test.go:105
Function
TestUpdateManualForm_ProtocolNav
TestUpdateManualForm_ProtocolNav covers the up/down protocol selection on the protocol step.
cmd/opencodereview/provider_tui_manualenter_test.go:161
Function
TestUserAgent
(t *testing.T)
internal/llm/message_test.go:397
Function
TestValidArgNames
(t *testing.T)
cmd/opencodereview/arg_errors_test.go:283
Function
TestValidInvocationsStillResolve
TestValidInvocationsStillResolve is a regression guard: swapping the validators must not reject argument counts that were previously accepted.
cmd/opencodereview/arg_errors_test.go:236
Function
TestValidateColorMode
(t *testing.T)
cmd/opencodereview/color_test.go:44
Function
TestValidateDelegateOptions
(t *testing.T)
cmd/opencodereview/delegate_helpers_test.go:11
Function
TestValidateExtraRejectsInvalidBooleanValues
TestValidateExtraRejectsInvalidBooleanValues checks that an inline boolean value is only accepted when strconv.ParseBool accepts it, mirroring pflag.
acp/internal/contract/intent_test.go:355
Function
TestValidateKeyCmd
(t *testing.T)
internal/llm/keycmd_test.go:80
Function
TestValidateOpenMode
(t *testing.T)
internal/viewer/browser_test.go:60
Function
TestValidateOptions_CommitMatches
(t *testing.T)
internal/session/resume_test.go:222
Function
TestValidateOptions_IgnoresCommitText
(t *testing.T)
internal/session/resume_test.go:236
Function
TestValidateOptions_IgnoresRangeText
Ref text is no longer evidence about the input: two spellings can name the same commit and one spelling can name two different commits over time. Vali
internal/session/resume_test.go:206
Function
TestValidateOptions_NilState
--- ValidateOptions ---
internal/session/resume_test.go:138
Function
TestValidateOptions_RangeMatches
(t *testing.T)
internal/session/resume_test.go:186
Function
TestValidateOptions_RejectsEmptyMode
(t *testing.T)
internal/session/resume_test.go:162
Function
TestValidateOptions_RejectsMissingStateMode
(t *testing.T)
internal/session/resume_test.go:170
Function
TestValidateOptions_RejectsModeMismatch
(t *testing.T)
internal/session/resume_test.go:178
Function
TestValidateOptions_RejectsWorkspaceMismatch
(t *testing.T)
internal/session/resume_test.go:154
Function
TestValidateOptions_UnsupportedMode
(t *testing.T)
internal/session/resume_test.go:250
Function
TestValidateOptions_WorkspaceMatches
(t *testing.T)
internal/session/resume_test.go:146
Function
TestValidateProtocol
(t *testing.T)
internal/llm/protocol_test.go:35
Function
TestValidateProtocol_ErrorMessageListsAllProtocols
TestValidateProtocol_ErrorMessageListsAllProtocols makes sure the error message enumerates every canonical name so users discover openai-responses fro
internal/llm/protocol_test.go:71
Function
TestValidateReportCatchesInconsistency
(t *testing.T)
internal/llm/retry_report_test.go:731
Function
TestValidateRequestAdditionalFailures
(t *testing.T)
acp/internal/orchestrator/internal_test.go:145
Function
TestValidateResume
(t *testing.T)
internal/session/resume_identity_test.go:66
Function
TestValidateResumeIdentity
TestValidateResumeIdentity drives the command-layer check against a parent that really exists on disk, with the identity resolved from real git input
cmd/opencodereview/review_resume_more_test.go:252
Function
TestValidateResumeIdentityWorkspace
TestValidateResumeIdentityWorkspace pins the workspace half of resume admission: the worktree is the input, so it must be unchanged, and there is no c
cmd/opencodereview/review_resume_more_test.go:367
Function
TestValidateResumeNilStateAccepts
A nil parent is a non-resume run and must not be second-guessed here.
internal/session/resume_identity_test.go:254
Function
TestValidateReviewRefsRejectsOptionLikeCommit
(t *testing.T)
cmd/opencodereview/review_cmd_test.go:83
Function
TestValidateReviewRefsRejectsOptionLikeRangeRef
(t *testing.T)
cmd/opencodereview/review_cmd_test.go:181
Function
TestValidateReviewRefs_EmptySkipped
(t *testing.T)
cmd/opencodereview/git_test.go:177
Function
TestValidateReviewRefs_InvalidCommit
(t *testing.T)
cmd/opencodereview/git_test.go:169
Function
TestValidateReviewRefs_ValidCommit
(t *testing.T)
cmd/opencodereview/git_test.go:161
Function
TestValidateScanOptions
TestValidateScanOptions covers every branch of ResumeState.ValidateScanOptions: the nil receiver, the missing/mismatched review mode errors, the scan-
internal/session/validate_scan_options_test.go:14
Function
TestValidateScanOptions_AllowsLegacySessionWithoutPathScope
(t *testing.T)
internal/session/resume_test.go:882
Function
TestValidateScanOptions_RejectsScanPathScopeMismatch
(t *testing.T)
internal/session/resume_test.go:901
Function
TestValidateScanOptions_RejectsWholeRepoScopeMismatch
(t *testing.T)
internal/session/resume_test.go:917
Function
TestValidateScanOptions_ScanPathScopeMatchesNormalized
(t *testing.T)
internal/session/resume_test.go:889
Function
TestValidateTimeoutSec
(t *testing.T)
internal/llm/resolver_test.go:1949
Function
TestValidateUnsupportedToolBindings
(test *testing.T)
internal/config/template/template_test.go:27
Function
TestValidate_PassesOnDefault
(t *testing.T)
internal/config/template/template_test.go:293
Function
TestValidate_ScanTemplate
(t *testing.T)
internal/config/template/template_test.go:375
Function
TestValidate_Template_Errors
(t *testing.T)
internal/config/template/template_test.go:335
Function
TestVerifyIDToken
(t *testing.T)
internal/chatgptauth/auth_test.go:184
← previous
next →
6,101–6,200 of 7,169, ranked by callers