MCPcopy Create free account

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

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

FunctionTestHandleManualFormEnter_AuthTokenGate
The Manual tab's auth-token gate is the legacy twin of apiKeyStepCanConfirm: llm.auth_token_cmd has to stand in for an empty field the same way.
cmd/opencodereview/provider_tui_funcs_test.go:2027
FunctionTestHandleManualFormEnter_Steps
TestHandleManualFormEnter_Steps drives handleManualFormEnter through every manualStep, covering both the guard (empty required field) and advance bran
cmd/opencodereview/provider_tui_manualenter_test.go:15
FunctionTestHandleRepos_EmptyRoot
(t *testing.T)
internal/viewer/handler_test.go:154
FunctionTestHandleRepos_NotFoundForNonRootPath
(t *testing.T)
internal/viewer/handler_test.go:168
FunctionTestHandleRepos_PermissionDenied
(t *testing.T)
internal/viewer/handler_test.go:190
FunctionTestHandleRepos_Success
(t *testing.T)
internal/viewer/handler_test.go:17
FunctionTestHandleRepos_UnreadableRoot
(t *testing.T)
internal/viewer/handler_test.go:179
FunctionTestHandleSession_EmptyCWD
(t *testing.T)
internal/viewer/handler_test.go:367
FunctionTestHandleSession_GroupingRendersPaths
(t *testing.T)
internal/viewer/handler_test.go:299
FunctionTestHandleSession_NotFound
(t *testing.T)
internal/viewer/handler_test.go:351
FunctionTestHandleSession_RendersMarkIdentityNotState
The session page is the marks UI's only server dependency: it must render each card's stable data-mark-id plus the client-side buttons, and carry no m
internal/viewer/handler_test.go:411
FunctionTestHandleSession_ServedPageKeepsStaticRefs
TestHandleSession_ServedPageKeepsStaticRefs guards the other half of the export gates in session.html. sessionPageData.Static is false for every HTTP
internal/viewer/server_extra_test.go:1528
FunctionTestHandleSession_Success
(t *testing.T)
internal/viewer/handler_test.go:275
FunctionTestHandleSessions_ErrorOnBadDir
(t *testing.T)
internal/viewer/handler_test.go:264
FunctionTestHandleSessions_NoCWD
(t *testing.T)
internal/viewer/handler_test.go:246
FunctionTestHandleSessions_Success
(t *testing.T)
internal/viewer/handler_test.go:223
FunctionTestHandleUp_CustomTab
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:419
FunctionTestHandleUp_ModelStep
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:436
FunctionTestHandleUp_ModelStepWraps
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:447
FunctionTestHandleUp_OfficialTab
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:390
FunctionTestHandleUp_Wraps
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:407
FunctionTestHasLineBounds
(t *testing.T)
acp/internal/adapter/workspace/files_test.go:79
FunctionTestHasOddQuotes
(t *testing.T)
internal/tool/comment_args_repair_test.go:523
FunctionTestHasReviewLimitWarning
(t *testing.T)
cmd/opencodereview/output_helpers_test.go:44
FunctionTestHasSubtaskErrors
(t *testing.T)
cmd/opencodereview/output_helpers_test.go:21
FunctionTestHasSuspectTruncation
(t *testing.T)
internal/tool/comment_args_repair_test.go:559
FunctionTestHashFields_EmptyIsCanonical
(t *testing.T)
internal/agent/manifest_hash_test.go:24
FunctionTestHashFields_LengthPrefixPreventsCollision
(t *testing.T)
internal/agent/manifest_hash_test.go:30
FunctionTestHeaderTransport
(t *testing.T)
internal/mcp/client_test.go:18
FunctionTestHeaderTransport_401
(t *testing.T)
internal/mcp/client_test.go:51
FunctionTestHeaderTransport_403
(t *testing.T)
internal/mcp/client_test.go:72
FunctionTestHomeConfigPath
(t *testing.T)
internal/telemetry/config_test.go:269
FunctionTestHostGuard
(t *testing.T)
internal/viewer/hostguard_test.go:103
FunctionTestHostOnly
(t *testing.T)
internal/viewer/hostguard_test.go:12
FunctionTestHumanTokens
(t *testing.T)
internal/scan/estimate_test.go:14
FunctionTestHumanTokens
These tests mirror internal/scan/estimate_test.go deliberately: the agent estimate helpers are re-declared copies that must stay in sync with scan's (
internal/agent/estimate_test.go:21
FunctionTestIdempotentSameOutcome
Re-applying the same terminal state is idempotent (no error).
internal/session/manifest_test.go:329
FunctionTestIdentityAndExecutionFields
Identity/execution setters populate the manifest and stop mattering after freeze.
internal/session/manifest_test.go:496
FunctionTestIdleProgressUpdatesElapsedWithoutRepeatingContent
(t *testing.T)
acp/internal/adapter/presentation/progress_test.go:259
FunctionTestInheritedPipeAcceptsGoPipes
(t *testing.T)
acp/cmd/ocr-acp/stdio_windows_test.go:18
FunctionTestInheritedPipeCloseCancelsBlockedWrite
(t *testing.T)
acp/cmd/ocr-acp/stdio_windows_test.go:55
FunctionTestInitConsoleProviders
(t *testing.T)
internal/telemetry/exporter_test.go:69
FunctionTestInitEmbeddedLoader
(t *testing.T)
internal/llm/embedded_loader_test.go:80
FunctionTestInitMCPClients
(t *testing.T)
cmd/opencodereview/review_helpers_test.go:303
FunctionTestInitMCPClients_ErrorBranches
TestInitMCPClients_ErrorBranches covers the connect/start/setup failure paths that end in a "skip this server" continue. Each server fails fast (refus
cmd/opencodereview/review_mcp_more_test.go:34
FunctionTestInitOTLPHTTPProviders_HonoursBasePath
TestInitOTLPHTTPProviders_HonoursBasePath is the regression test for the bug this exporter had: WithEndpoint takes a bare host:port, so a base path in
internal/telemetry/exporter_test.go:251
FunctionTestInitOTLPHTTPProviders_InvalidEndpoint
(t *testing.T)
internal/telemetry/exporter_test.go:117
FunctionTestInitOTLPProviders_InvalidEndpoint
(t *testing.T)
internal/telemetry/exporter_test.go:94
FunctionTestInitOTLPProviders_ProtocolRouting
(t *testing.T)
internal/telemetry/exporter_test.go:141
FunctionTestInit_AlreadyInitialized
(t *testing.T)
internal/telemetry/provider_test.go:75
FunctionTestInit_AlreadyInitializedWithShutdowns
(t *testing.T)
internal/telemetry/provider_test.go:89
FunctionTestInit_DisabledByDefault
(t *testing.T)
internal/telemetry/provider_test.go:105
FunctionTestInit_EnabledConsole
(t *testing.T)
internal/telemetry/provider_test.go:134
FunctionTestInit_ReturnsNil
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:167
FunctionTestInjectDiffMap
(t *testing.T)
internal/agent/coverage_test.go:119
FunctionTestInlineIcon
(t *testing.T)
internal/viewer/server_extra_test.go:822
FunctionTestInstallWithConfig
(t *testing.T)
acp/internal/testutil/stub_test.go:94
FunctionTestInstallWithoutConfig
(t *testing.T)
acp/internal/testutil/stub_test.go:83
FunctionTestInterruptChildHarness
TestInterruptChildHarness is the subprocess body for the second-signal integration tests. In the parent test binary it is skipped; the integration tes
cmd/opencodereview/interrupt_test.go:199
FunctionTestInterruptContextFirstSignalCancelsGracefully
(t *testing.T)
cmd/opencodereview/interrupt_test.go:34
FunctionTestInterruptContextParentCancelReleasesWatcher
(t *testing.T)
cmd/opencodereview/interrupt_test.go:94
FunctionTestInterruptContextSecondSignalForceExits
(t *testing.T)
cmd/opencodereview/interrupt_test.go:54
FunctionTestInterruptContextStopBeforeSignalReleasesWatcher
(t *testing.T)
cmd/opencodereview/interrupt_test.go:80
FunctionTestInterruptedCloseRemainsTrackedByShutdown
(t *testing.T)
acp/internal/adapter/lifecycle_test.go:32
FunctionTestInvalidFailureClassRejected
An invalid/empty failure class is rejected (never downgraded to unknown); the item stays selected and is swept at Finalize.
internal/session/manifest_test.go:387
FunctionTestInvalidGrantAuthorizationRecovery
(t *testing.T)
internal/chatgptauth/recovery_test.go:145
FunctionTestInvalidURLFailsBeforeTransport
(t *testing.T)
acp/internal/intent/llm/diagnostics_test.go:289
FunctionTestInvalidUTF8PathIsMetadataOnly
(test *testing.T)
internal/behaviortask/scope_regression_test.go:104
FunctionTestIsAllowedExt
(t *testing.T)
internal/config/allowlist/allowed_ext_test.go:13
FunctionTestIsBinaryFile
TestIsBinaryFile covers detection plus the open-error branch.
internal/scan/provider_more_test.go:97
FunctionTestIsCommitMode
(t *testing.T)
internal/diff/gitignore_test.go:294
FunctionTestIsCustomModelItem
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:375
FunctionTestIsEnabled_InitializedButNoShutdowns
(t *testing.T)
internal/telemetry/provider_test.go:22
FunctionTestIsEnabled_NotInitialized
(t *testing.T)
internal/telemetry/provider_test.go:12
FunctionTestIsEnabled_WithShutdowns
(t *testing.T)
internal/telemetry/provider_test.go:34
FunctionTestIsExcludedPath
(t *testing.T)
internal/config/allowlist/allowed_ext_test.go:268
FunctionTestIsLegalEscape
(t *testing.T)
internal/tool/comment_args_repair_test.go:223
FunctionTestIsLoopbackHost
(t *testing.T)
internal/viewer/hostguard_test.go:36
FunctionTestIsPathExcluded
(t *testing.T)
internal/diff/gitignore_test.go:116
FunctionTestIsPathExcluded_AllowListGitignore
(t *testing.T)
internal/diff/gitignore_test.go:189
FunctionTestIsPathExcluded_DirectoryPatterns
(t *testing.T)
internal/diff/gitignore_test.go:140
FunctionTestIsPathExcluded_LastMatchWins
TestIsPathExcluded_LastMatchWins pins ordering semantics: gitignore resolves a path by the LAST pattern that matches it, not the first.
internal/diff/gitignore_test.go:228
FunctionTestIsRangeMode
(t *testing.T)
internal/diff/gitignore_test.go:283
FunctionTestIsReserved
(t *testing.T)
internal/tool/definitions_test.go:94
FunctionTestIsSecretPath
(t *testing.T)
internal/config/allowlist/secret_path_test.go:10
FunctionTestIsUserAddedOfficialModelName_RegistryDuplicateNotUserAdded
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1295
FunctionTestIsUserEditMsg
TestIsUserEditMsg covers the key/paste true branches and the default false.
cmd/opencodereview/provider_tui_cpinput_test.go:15
FunctionTestItemIDDerivation
ItemID is content-independent: it is derived from operation, mode and the normalized old/new path, so a diff-content change does not change it, but a
internal/session/manifest_test.go:724
FunctionTestItem_Found
(t *testing.T)
internal/session/resume_test.go:84
FunctionTestItem_Missing
(t *testing.T)
internal/session/resume_test.go:76
FunctionTestItem_NilState
--- ResumeState.Item ---
internal/session/resume_test.go:68
FunctionTestItem_ReturnsCopy
(t *testing.T)
internal/session/resume_test.go:101
FunctionTestKeyCmdConfiguredHint
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:3009
FunctionTestKillProcessGroup
(t *testing.T)
acp/internal/orchestrator/process/process_test.go:17
FunctionTestKillProcessGroupPreservesPersistentErrors
(t *testing.T)
acp/internal/orchestrator/process/process_unix_test.go:43
FunctionTestKillProcessGroupRetriesOnlyDarwinPermissionRace
(t *testing.T)
acp/internal/orchestrator/process/process_unix_test.go:14
FunctionTestKnownCommentFieldsCoversTheSchema
TestKnownCommentFieldsCoversTheSchema stops the allow-list from drifting from the shipped schema: a field the schema defines but this set omits would
internal/tool/comment_args_repair_test.go:595
FunctionTestLLMFailures
(t *testing.T)
internal/session/history_test.go:466
FunctionTestLLMTestCommand_UsesDefaultConfigPath
(t *testing.T)
cmd/opencodereview/llm_cmd_test.go:219
FunctionTestLLMTestTimeout
(t *testing.T)
cmd/opencodereview/llm_cmd_test.go:16
← previousnext →4,301–4,400 of 7,390, ranked by callers