Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alibaba/open-code-review
/ functions
Functions
7,390 in github.com/alibaba/open-code-review
⨍
Functions
7,390
◇
Types & classes
806
Function
TestHandleManualFormEnter_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
Function
TestHandleManualFormEnter_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
Function
TestHandleRepos_EmptyRoot
(t *testing.T)
internal/viewer/handler_test.go:154
Function
TestHandleRepos_NotFoundForNonRootPath
(t *testing.T)
internal/viewer/handler_test.go:168
Function
TestHandleRepos_PermissionDenied
(t *testing.T)
internal/viewer/handler_test.go:190
Function
TestHandleRepos_Success
(t *testing.T)
internal/viewer/handler_test.go:17
Function
TestHandleRepos_UnreadableRoot
(t *testing.T)
internal/viewer/handler_test.go:179
Function
TestHandleSession_EmptyCWD
(t *testing.T)
internal/viewer/handler_test.go:367
Function
TestHandleSession_GroupingRendersPaths
(t *testing.T)
internal/viewer/handler_test.go:299
Function
TestHandleSession_NotFound
(t *testing.T)
internal/viewer/handler_test.go:351
Function
TestHandleSession_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
Function
TestHandleSession_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
Function
TestHandleSession_Success
(t *testing.T)
internal/viewer/handler_test.go:275
Function
TestHandleSessions_ErrorOnBadDir
(t *testing.T)
internal/viewer/handler_test.go:264
Function
TestHandleSessions_NoCWD
(t *testing.T)
internal/viewer/handler_test.go:246
Function
TestHandleSessions_Success
(t *testing.T)
internal/viewer/handler_test.go:223
Function
TestHandleUp_CustomTab
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:419
Function
TestHandleUp_ModelStep
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:436
Function
TestHandleUp_ModelStepWraps
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:447
Function
TestHandleUp_OfficialTab
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:390
Function
TestHandleUp_Wraps
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:407
Function
TestHasLineBounds
(t *testing.T)
acp/internal/adapter/workspace/files_test.go:79
Function
TestHasOddQuotes
(t *testing.T)
internal/tool/comment_args_repair_test.go:523
Function
TestHasReviewLimitWarning
(t *testing.T)
cmd/opencodereview/output_helpers_test.go:44
Function
TestHasSubtaskErrors
(t *testing.T)
cmd/opencodereview/output_helpers_test.go:21
Function
TestHasSuspectTruncation
(t *testing.T)
internal/tool/comment_args_repair_test.go:559
Function
TestHashFields_EmptyIsCanonical
(t *testing.T)
internal/agent/manifest_hash_test.go:24
Function
TestHashFields_LengthPrefixPreventsCollision
(t *testing.T)
internal/agent/manifest_hash_test.go:30
Function
TestHeaderTransport
(t *testing.T)
internal/mcp/client_test.go:18
Function
TestHeaderTransport_401
(t *testing.T)
internal/mcp/client_test.go:51
Function
TestHeaderTransport_403
(t *testing.T)
internal/mcp/client_test.go:72
Function
TestHomeConfigPath
(t *testing.T)
internal/telemetry/config_test.go:269
Function
TestHostGuard
(t *testing.T)
internal/viewer/hostguard_test.go:103
Function
TestHostOnly
(t *testing.T)
internal/viewer/hostguard_test.go:12
Function
TestHumanTokens
(t *testing.T)
internal/scan/estimate_test.go:14
Function
TestHumanTokens
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
Function
TestIdempotentSameOutcome
Re-applying the same terminal state is idempotent (no error).
internal/session/manifest_test.go:329
Function
TestIdentityAndExecutionFields
Identity/execution setters populate the manifest and stop mattering after freeze.
internal/session/manifest_test.go:496
Function
TestIdleProgressUpdatesElapsedWithoutRepeatingContent
(t *testing.T)
acp/internal/adapter/presentation/progress_test.go:259
Function
TestInheritedPipeAcceptsGoPipes
(t *testing.T)
acp/cmd/ocr-acp/stdio_windows_test.go:18
Function
TestInheritedPipeCloseCancelsBlockedWrite
(t *testing.T)
acp/cmd/ocr-acp/stdio_windows_test.go:55
Function
TestInitConsoleProviders
(t *testing.T)
internal/telemetry/exporter_test.go:69
Function
TestInitEmbeddedLoader
(t *testing.T)
internal/llm/embedded_loader_test.go:80
Function
TestInitMCPClients
(t *testing.T)
cmd/opencodereview/review_helpers_test.go:303
Function
TestInitMCPClients_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
Function
TestInitOTLPHTTPProviders_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
Function
TestInitOTLPHTTPProviders_InvalidEndpoint
(t *testing.T)
internal/telemetry/exporter_test.go:117
Function
TestInitOTLPProviders_InvalidEndpoint
(t *testing.T)
internal/telemetry/exporter_test.go:94
Function
TestInitOTLPProviders_ProtocolRouting
(t *testing.T)
internal/telemetry/exporter_test.go:141
Function
TestInit_AlreadyInitialized
(t *testing.T)
internal/telemetry/provider_test.go:75
Function
TestInit_AlreadyInitializedWithShutdowns
(t *testing.T)
internal/telemetry/provider_test.go:89
Function
TestInit_DisabledByDefault
(t *testing.T)
internal/telemetry/provider_test.go:105
Function
TestInit_EnabledConsole
(t *testing.T)
internal/telemetry/provider_test.go:134
Function
TestInit_ReturnsNil
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:167
Function
TestInjectDiffMap
(t *testing.T)
internal/agent/coverage_test.go:119
Function
TestInlineIcon
(t *testing.T)
internal/viewer/server_extra_test.go:822
Function
TestInstallWithConfig
(t *testing.T)
acp/internal/testutil/stub_test.go:94
Function
TestInstallWithoutConfig
(t *testing.T)
acp/internal/testutil/stub_test.go:83
Function
TestInterruptChildHarness
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
Function
TestInterruptContextFirstSignalCancelsGracefully
(t *testing.T)
cmd/opencodereview/interrupt_test.go:34
Function
TestInterruptContextParentCancelReleasesWatcher
(t *testing.T)
cmd/opencodereview/interrupt_test.go:94
Function
TestInterruptContextSecondSignalForceExits
(t *testing.T)
cmd/opencodereview/interrupt_test.go:54
Function
TestInterruptContextStopBeforeSignalReleasesWatcher
(t *testing.T)
cmd/opencodereview/interrupt_test.go:80
Function
TestInterruptedCloseRemainsTrackedByShutdown
(t *testing.T)
acp/internal/adapter/lifecycle_test.go:32
Function
TestInvalidFailureClassRejected
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
Function
TestInvalidGrantAuthorizationRecovery
(t *testing.T)
internal/chatgptauth/recovery_test.go:145
Function
TestInvalidURLFailsBeforeTransport
(t *testing.T)
acp/internal/intent/llm/diagnostics_test.go:289
Function
TestInvalidUTF8PathIsMetadataOnly
(test *testing.T)
internal/behaviortask/scope_regression_test.go:104
Function
TestIsAllowedExt
(t *testing.T)
internal/config/allowlist/allowed_ext_test.go:13
Function
TestIsBinaryFile
TestIsBinaryFile covers detection plus the open-error branch.
internal/scan/provider_more_test.go:97
Function
TestIsCommitMode
(t *testing.T)
internal/diff/gitignore_test.go:294
Function
TestIsCustomModelItem
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:375
Function
TestIsEnabled_InitializedButNoShutdowns
(t *testing.T)
internal/telemetry/provider_test.go:22
Function
TestIsEnabled_NotInitialized
(t *testing.T)
internal/telemetry/provider_test.go:12
Function
TestIsEnabled_WithShutdowns
(t *testing.T)
internal/telemetry/provider_test.go:34
Function
TestIsExcludedPath
(t *testing.T)
internal/config/allowlist/allowed_ext_test.go:268
Function
TestIsLegalEscape
(t *testing.T)
internal/tool/comment_args_repair_test.go:223
Function
TestIsLoopbackHost
(t *testing.T)
internal/viewer/hostguard_test.go:36
Function
TestIsPathExcluded
(t *testing.T)
internal/diff/gitignore_test.go:116
Function
TestIsPathExcluded_AllowListGitignore
(t *testing.T)
internal/diff/gitignore_test.go:189
Function
TestIsPathExcluded_DirectoryPatterns
(t *testing.T)
internal/diff/gitignore_test.go:140
Function
TestIsPathExcluded_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
Function
TestIsRangeMode
(t *testing.T)
internal/diff/gitignore_test.go:283
Function
TestIsReserved
(t *testing.T)
internal/tool/definitions_test.go:94
Function
TestIsSecretPath
(t *testing.T)
internal/config/allowlist/secret_path_test.go:10
Function
TestIsUserAddedOfficialModelName_RegistryDuplicateNotUserAdded
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1295
Function
TestIsUserEditMsg
TestIsUserEditMsg covers the key/paste true branches and the default false.
cmd/opencodereview/provider_tui_cpinput_test.go:15
Function
TestItemIDDerivation
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
Function
TestItem_Found
(t *testing.T)
internal/session/resume_test.go:84
Function
TestItem_Missing
(t *testing.T)
internal/session/resume_test.go:76
Function
TestItem_NilState
--- ResumeState.Item ---
internal/session/resume_test.go:68
Function
TestItem_ReturnsCopy
(t *testing.T)
internal/session/resume_test.go:101
Function
TestKeyCmdConfiguredHint
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:3009
Function
TestKillProcessGroup
(t *testing.T)
acp/internal/orchestrator/process/process_test.go:17
Function
TestKillProcessGroupPreservesPersistentErrors
(t *testing.T)
acp/internal/orchestrator/process/process_unix_test.go:43
Function
TestKillProcessGroupRetriesOnlyDarwinPermissionRace
(t *testing.T)
acp/internal/orchestrator/process/process_unix_test.go:14
Function
TestKnownCommentFieldsCoversTheSchema
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
Function
TestLLMFailures
(t *testing.T)
internal/session/history_test.go:466
Function
TestLLMTestCommand_UsesDefaultConfigPath
(t *testing.T)
cmd/opencodereview/llm_cmd_test.go:219
Function
TestLLMTestTimeout
(t *testing.T)
cmd/opencodereview/llm_cmd_test.go:16
← previous
next →
4,301–4,400 of 7,390, ranked by callers