Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alibaba/open-code-review
/ functions
Functions
7,484 in github.com/alibaba/open-code-review
⨍
Functions
7,484
◇
Types & classes
809
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:496
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:484
Function
TestTruncationAndObservationRanges
(test *testing.T)
internal/behaviortask/code_test.go:84
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
TestUTF8PageAndContextValidation
(test *testing.T)
internal/behaviortask/context_test.go:67
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:37
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:215
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:139
Function
TestUpdateManualForm_ProtocolNav
TestUpdateManualForm_ProtocolNav covers the up/down protocol selection on the protocol step.
cmd/opencodereview/provider_tui_manualenter_test.go:195
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:18
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
TestValidateWorkspaceFileMode
(t *testing.T)
internal/tool/filereader_test.go:12
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
Function
TestVersionCaptureBoundsChildOutput
(t *testing.T)
acp/internal/orchestrator/resolve_test.go:95
Function
TestVersionProbeAllowsBriefInheritedOutputWait
(t *testing.T)
acp/internal/orchestrator/resolve_probe_test.go:17
Function
TestVersionProbeBoundsInheritedOutputWait
(t *testing.T)
acp/internal/orchestrator/resolve_probe_test.go:29
Function
TestVersionTooOldError_Error
(t *testing.T)
internal/gitcmd/version_test.go:78
Function
TestViewerCmd_DefaultAddr
(t *testing.T)
cmd/opencodereview/smallfiles_test.go:68
Function
TestViewerCmd_RejectsInvalidOpenMode
TestViewerCmd_RejectsInvalidOpenMode pins the validation wiring: an unknown value must fail before the server binds a socket. RunE runs under a deadl
cmd/opencodereview/smallfiles_test.go:92
Function
TestViewerReadsSessionEndLargerThanScannerLimit
(t *testing.T)
internal/viewer/store_load_test.go:301
Function
TestVisibleRunesLen
(t *testing.T)
cmd/opencodereview/output_helpers_test.go:127
Function
TestWaitBackground_JoinsCompressionBeforeFreeze
The run boundary joins background memory compression before the report is frozen. Without that join, Freeze can see a request that recorded attempts b
internal/llmloop/retry_background_test.go:65
Function
TestWaitBackground_NoJobIsANoOp
WaitBackground must also be safe when no job ever started and when it is called twice, because the run boundary calls it unconditionally on every exit
internal/llmloop/retry_background_test.go:108
Function
TestWaiveAfterFailedErrorsAndKeepsFailed
Within a single run, waiving an item that has already failed is a conflicting transition: it returns an error and the first terminal state wins.
internal/session/manifest_test.go:577
Function
TestWaiveEmptyReasonRejected
A waived item requires a non-empty reason.
internal/session/manifest_test.go:411
Function
TestWaivedResolvesToComplete
Waived items count as resolved (non-failed): a run with completed + waived and no failed is complete.
internal/session/manifest_test.go:272
Function
TestWarningsForOutput
TestWarningsForOutput covers warningsForOutput: the early pass-through when there is no manifest, the all-filtered case that collapses to nil, and the
cmd/opencodereview/output_manifest_test.go:17
Function
TestWholeRepoScanPathScopeResumeRoundTrip
(t *testing.T)
internal/session/persist_test.go:533
← previous
next →
6,401–6,500 of 7,484, ranked by callers