MCPcopy Create free account

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

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

FunctionTestToolCallErrorStyle
(test *testing.T)
internal/telemetry/events_test.go:27
FunctionTestToolCallIDsAcrossProcessRestarts
(t *testing.T)
acp/internal/adapter/presentation/tool_ids_test.go:19
FunctionTestToolCall_EstimatedTokens
(t *testing.T)
internal/llm/client_test.go:2246
FunctionTestToolCallsForJSON_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
FunctionTestToolFailures_AreOrderedAndSnapshotIsolated
(t *testing.T)
internal/llmloop/runner_test.go:131
FunctionTestToolResultMessages_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
FunctionTestToolResultMessages_NoCalls
TestToolResultMessages_NoCalls returns nothing when the model called nothing.
cmd/opencodereview/llm_cmd_test.go:174
FunctionTestToolRoundTripNote
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
FunctionTestToolRoundTripNote_UnverifiedIsNotMistakenForSuccess
TestToolRoundTripNote_UnverifiedIsNotMistakenForSuccess keeps the two states textually distinct, so neither reads as the other.
cmd/opencodereview/llm_cmd_test.go:69
FunctionTestTool_IsKnown
(t *testing.T)
internal/tool/definitions_test.go:41
FunctionTestTool_Name
(t *testing.T)
internal/tool/definitions_test.go:35
FunctionTestTraceIDFromContext_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
FunctionTestTraceIDFromContext_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
FunctionTestTransitionRejectionStaysActionableWithNoName
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
FunctionTestTriggerAsyncCompression
(t *testing.T)
internal/llmloop/runner_test.go:469
FunctionTestTrimGitUsage
(t *testing.T)
internal/tool/code_search_test.go:388
FunctionTestTrimGitUsage_PreservesDiagnosticWithoutUsage
(t *testing.T)
internal/tool/code_search_test.go:425
FunctionTestTrimGitUsage_WhitespaceOnly
(t *testing.T)
internal/tool/code_search_test.go:433
FunctionTestTruncate
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
FunctionTestTruncateText
(t *testing.T)
internal/viewer/server_test.go:13
FunctionTestTruncateTextAlwaysValidUTF8
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
FunctionTestTruncateUnicode
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:476
FunctionTestTryApplyPendingCompression_Applied
(t *testing.T)
internal/llmloop/runner_test.go:232
FunctionTestTryApplyPendingCompression_NilJob
(t *testing.T)
internal/llmloop/runner_test.go:207
FunctionTestTryApplyPendingCompression_NilRebuilt
(t *testing.T)
internal/llmloop/runner_test.go:270
FunctionTestTryApplyPendingCompression_NotDone
(t *testing.T)
internal/llmloop/runner_test.go:216
FunctionTestTryCCEnv
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
FunctionTestTryShellRC
(t *testing.T)
internal/llm/resolver_shellrc_test.go:30
FunctionTestTurnDeadlineIncludesParsing
(t *testing.T)
acp/internal/adapter/lifecycle_test.go:19
FunctionTestTypedErrorWithoutCause
(t *testing.T)
acp/internal/orchestrator/internal_test.go:184
FunctionTestURLHelpers
(t *testing.T)
acp/internal/intent/llm/client_test.go:355
FunctionTestURLPatternFormat
(t *testing.T)
internal/release/asset_naming_test.go:70
FunctionTestURLPatternHTTPS
(t *testing.T)
internal/release/asset_naming_test.go:185
FunctionTestURLPatternNoVersionInFilename
(t *testing.T)
internal/release/asset_naming_test.go:62
FunctionTestUnknownLineageSchemaIsIgnored
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
FunctionTestUnquoteGitPath
(t *testing.T)
internal/diff/quotedpath_test.go:17
FunctionTestUnreadOutputClosesConnection
(t *testing.T)
acp/internal/adapter/output_test.go:15
FunctionTestUnreadableFindingKeepsTextWithoutNavigation
(t *testing.T)
acp/internal/adapter/locations_test.go:56
FunctionTestUnsetActiveCustomProvider
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:730
FunctionTestUnsetCustomProvider
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:700
FunctionTestUnsetInvalidKey
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:768
FunctionTestUnsetMCPServer
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:1008
FunctionTestUnsetMCPServer_LastEntry
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:1038
FunctionTestUnsetMCPServer_NotFound
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:1064
FunctionTestUnsetMaxTokens
--- unset tests ---
cmd/opencodereview/config_cmd_test.go:673
FunctionTestUnset_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
FunctionTestUntrackedFilesListPropagatesGitFailure
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
FunctionTestUntrackedFilesList_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
FunctionTestUpdateCustomModelInput
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
FunctionTestUpdateCustomProviderForm_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
FunctionTestUpdateCustomProviderForm_ProtocolNav
TestUpdateCustomProviderForm_ProtocolNav covers up/down protocol selection.
cmd/opencodereview/provider_tui_customform_test.go:257
FunctionTestUpdateDeleteConfirm_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
FunctionTestUpdateDeleteModelConfirm
TestUpdateDeleteModelConfirm covers y (confirm), n/esc (cancel), and ctrl+c.
cmd/opencodereview/provider_tui_modeltui_test.go:154
FunctionTestUpdateDeleteModelConfirm_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
FunctionTestUpdateManualForm_CtrlC
TestUpdateManualForm_CtrlC covers the ctrl+c cancel branch.
cmd/opencodereview/provider_tui_manualenter_test.go:181
FunctionTestUpdateManualForm_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
FunctionTestUpdateManualForm_ProtocolNav
TestUpdateManualForm_ProtocolNav covers the up/down protocol selection on the protocol step.
cmd/opencodereview/provider_tui_manualenter_test.go:161
FunctionTestUserAgent
(t *testing.T)
internal/llm/message_test.go:397
FunctionTestValidArgNames
(t *testing.T)
cmd/opencodereview/arg_errors_test.go:283
FunctionTestValidInvocationsStillResolve
TestValidInvocationsStillResolve is a regression guard: swapping the validators must not reject argument counts that were previously accepted.
cmd/opencodereview/arg_errors_test.go:236
FunctionTestValidateColorMode
(t *testing.T)
cmd/opencodereview/color_test.go:44
FunctionTestValidateDelegateOptions
(t *testing.T)
cmd/opencodereview/delegate_helpers_test.go:11
FunctionTestValidateExtraRejectsInvalidBooleanValues
TestValidateExtraRejectsInvalidBooleanValues checks that an inline boolean value is only accepted when strconv.ParseBool accepts it, mirroring pflag.
acp/internal/contract/intent_test.go:355
FunctionTestValidateKeyCmd
(t *testing.T)
internal/llm/keycmd_test.go:80
FunctionTestValidateOpenMode
(t *testing.T)
internal/viewer/browser_test.go:60
FunctionTestValidateOptions_CommitMatches
(t *testing.T)
internal/session/resume_test.go:222
FunctionTestValidateOptions_IgnoresCommitText
(t *testing.T)
internal/session/resume_test.go:236
FunctionTestValidateOptions_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
FunctionTestValidateOptions_NilState
--- ValidateOptions ---
internal/session/resume_test.go:138
FunctionTestValidateOptions_RangeMatches
(t *testing.T)
internal/session/resume_test.go:186
FunctionTestValidateOptions_RejectsEmptyMode
(t *testing.T)
internal/session/resume_test.go:162
FunctionTestValidateOptions_RejectsMissingStateMode
(t *testing.T)
internal/session/resume_test.go:170
FunctionTestValidateOptions_RejectsModeMismatch
(t *testing.T)
internal/session/resume_test.go:178
FunctionTestValidateOptions_RejectsWorkspaceMismatch
(t *testing.T)
internal/session/resume_test.go:154
FunctionTestValidateOptions_UnsupportedMode
(t *testing.T)
internal/session/resume_test.go:250
FunctionTestValidateOptions_WorkspaceMatches
(t *testing.T)
internal/session/resume_test.go:146
FunctionTestValidateProtocol
(t *testing.T)
internal/llm/protocol_test.go:35
FunctionTestValidateProtocol_ErrorMessageListsAllProtocols
TestValidateProtocol_ErrorMessageListsAllProtocols makes sure the error message enumerates every canonical name so users discover openai-responses fro
internal/llm/protocol_test.go:71
FunctionTestValidateReportCatchesInconsistency
(t *testing.T)
internal/llm/retry_report_test.go:731
FunctionTestValidateRequestAdditionalFailures
(t *testing.T)
acp/internal/orchestrator/internal_test.go:145
FunctionTestValidateResume
(t *testing.T)
internal/session/resume_identity_test.go:66
FunctionTestValidateResumeIdentity
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
FunctionTestValidateResumeIdentityWorkspace
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
FunctionTestValidateResumeNilStateAccepts
A nil parent is a non-resume run and must not be second-guessed here.
internal/session/resume_identity_test.go:254
FunctionTestValidateReviewRefsRejectsOptionLikeCommit
(t *testing.T)
cmd/opencodereview/review_cmd_test.go:83
FunctionTestValidateReviewRefsRejectsOptionLikeRangeRef
(t *testing.T)
cmd/opencodereview/review_cmd_test.go:181
FunctionTestValidateReviewRefs_EmptySkipped
(t *testing.T)
cmd/opencodereview/git_test.go:177
FunctionTestValidateReviewRefs_InvalidCommit
(t *testing.T)
cmd/opencodereview/git_test.go:169
FunctionTestValidateReviewRefs_ValidCommit
(t *testing.T)
cmd/opencodereview/git_test.go:161
FunctionTestValidateScanOptions
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
FunctionTestValidateScanOptions_AllowsLegacySessionWithoutPathScope
(t *testing.T)
internal/session/resume_test.go:882
FunctionTestValidateScanOptions_RejectsScanPathScopeMismatch
(t *testing.T)
internal/session/resume_test.go:901
FunctionTestValidateScanOptions_RejectsWholeRepoScopeMismatch
(t *testing.T)
internal/session/resume_test.go:917
FunctionTestValidateScanOptions_ScanPathScopeMatchesNormalized
(t *testing.T)
internal/session/resume_test.go:889
FunctionTestValidateTimeoutSec
(t *testing.T)
internal/llm/resolver_test.go:1949
FunctionTestValidateUnsupportedToolBindings
(test *testing.T)
internal/config/template/template_test.go:27
FunctionTestValidate_PassesOnDefault
(t *testing.T)
internal/config/template/template_test.go:293
FunctionTestValidate_ScanTemplate
(t *testing.T)
internal/config/template/template_test.go:375
FunctionTestValidate_Template_Errors
(t *testing.T)
internal/config/template/template_test.go:335
FunctionTestVerifyIDToken
(t *testing.T)
internal/chatgptauth/auth_test.go:184
← previousnext →6,101–6,200 of 7,169, ranked by callers