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
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:98
Function
TestIsCommitMode
(t *testing.T)
internal/diff/gitignore_test.go:288
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:110
Function
TestIsPathExcluded_AllowListGitignore
(t *testing.T)
internal/diff/gitignore_test.go:183
Function
TestIsPathExcluded_DirectoryPatterns
(t *testing.T)
internal/diff/gitignore_test.go:134
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:222
Function
TestIsPerlRegexpCompileError
(t *testing.T)
internal/tool/code_search_test.go:396
Function
TestIsRangeMode
(t *testing.T)
internal/diff/gitignore_test.go:277
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
TestLLMHelpIncludesModels
(t *testing.T)
cmd/opencodereview/smallfiles_test.go:120
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
Function
TestLanguageKey_ExtensionlessAndDotfiles
(t *testing.T)
internal/scan/batch_test.go:122
Function
TestLargeDeniedInventory
(test *testing.T)
internal/behaviortask/scope_test.go:66
Function
TestLargeInventoryIsPagedBeforeFirstRequest
(test *testing.T)
internal/behaviortask/context_test.go:94
Function
TestLazyFileWriter_ErrOnCreateFailure
--- deferred write-error propagation --- TestLazyFileWriter_ErrOnCreateFailure pins that a failed lazy create is reported through Err() so text-mode c
cmd/opencodereview/output_file_test.go:569
Function
TestLazyFileWriter_JSONKeepsBytesUnchanged
(t *testing.T)
cmd/opencodereview/output_file_test.go:542
Function
TestLazyFileWriter_NewFileUsesCreatePermissions
(t *testing.T)
cmd/opencodereview/output_file_test.go:358
Function
TestLazyFileWriter_NoWriteDoesNotCreateFile
TestLazyFileWriter_NoWriteDoesNotCreateFile verifies a never-written lazy writer leaves no empty file behind (no phantom file on failure paths).
cmd/opencodereview/output_file_test.go:245
Function
TestLazyFileWriter_NoWriteLeavesExistingFileUntouched
TestLazyFileWriter_NoWriteLeavesExistingFileUntouched pins the core data-safety contract: a writer that is resolved but never written to (a failed run
cmd/opencodereview/output_file_test.go:221
Function
TestLazyFileWriter_PreservesSymlinkTarget
(t *testing.T)
cmd/opencodereview/output_file_test.go:468
Function
TestLazyFileWriter_RenameFailureLeavesTargetAndCleansTemp
(t *testing.T)
cmd/opencodereview/output_file_test.go:397
Function
TestLazyFileWriter_ReplacesExistingFileOnlyOnClose
(t *testing.T)
cmd/opencodereview/output_file_test.go:304
Function
TestLazyFileWriter_TextStripsAnsi
(t *testing.T)
cmd/opencodereview/output_file_test.go:518
Function
TestLazyFileWriter_WriteCommitsFileAndPrintsHintOnClose
(t *testing.T)
cmd/opencodereview/output_file_test.go:259
Function
TestLazyFileWriter_WriteFailureLeavesExistingFileUntouched
(t *testing.T)
cmd/opencodereview/output_file_test.go:431
Function
TestLegacyLLMShadowWarning
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:1431
Function
TestLegacyToolsCannotCompleteBehavior
(test *testing.T)
internal/behaviortask/runner_test.go:267
Function
TestLevenshtein
(t *testing.T)
cmd/opencodereview/flag_suggest_test.go:14
Function
TestLimitErrorBodyForLog_DropsRuneSplitByTheCap
TestLimitErrorBodyForLog_DropsRuneSplitByTheCap guards the cut at the 64 KiB display bound: a multi-byte character split by the cap is dropped rather
internal/llm/provider_error_test.go:251
Function
TestLimitedAndTailBuffers
(t *testing.T)
acp/internal/orchestrator/internal_test.go:165
Function
TestListAllTools_FollowsPagination
tools/list is paginated, so a server that pages its catalog returns one page plus a nextCursor per call. Reading a single page must not truncate the c
internal/mcp/client_test.go:384
Function
TestListCursorPrefix_Active
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:175
Function
TestListCursorPrefix_Inactive
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:182
Function
TestListProviders_Order
(t *testing.T)
internal/llm/providers_test.go:109
Function
TestListProviders_ReturnsCopy
(t *testing.T)
internal/llm/providers_test.go:125
Function
TestListProviders_ReturnsSortedProviders
(t *testing.T)
internal/llm/providers_test.go:168
Function
TestListSessions
(t *testing.T)
internal/viewer/store_test.go:255
Function
TestListSessions_DirIsFile
TestListSessions_DirIsFile covers the ReadDir error branch (a non-NotExist error): when the computed sessions dir path is occupied by a regular file,
internal/session/list_error_test.go:16
Function
TestListSessions_MissingDirReturnsEmptySlice
(t *testing.T)
internal/session/list_test.go:15
Function
TestListSessions_SkipsUnreadableFiles
(t *testing.T)
internal/viewer/store_load_test.go:613
Function
TestListSessions_SortsAndAggregates
(t *testing.T)
internal/session/list_test.go:37
Function
TestLiteralPathBatches
(test *testing.T)
internal/behaviortask/scope_test.go:108
Function
TestLlmComment_JSON
(t *testing.T)
internal/model/model_test.go:155
Function
TestLlmComment_JSONCategorySeverity
TestLlmComment_JSONCategorySeverity verifies category and severity serialize as flat siblings alongside content when set, and are omitted entirely whe
internal/tool/code_comment_test.go:257
Function
TestLoadAppConfig_InvalidJSON
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:1654
Function
TestLoadAppConfig_NotExist
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:1644
Function
TestLoadBackgroundFileControlCharRemoval
(t *testing.T)
cmd/opencodereview/background_file_test.go:117
Function
TestLoadBackgroundFileDelimiters
(t *testing.T)
cmd/opencodereview/background_file_test.go:166
Function
TestLoadBackgroundFileDirectory
(t *testing.T)
cmd/opencodereview/background_file_test.go:252
Function
TestLoadBackgroundFileEmpty
(t *testing.T)
cmd/opencodereview/background_file_test.go:98
Function
TestLoadBackgroundFileHardLimit
(t *testing.T)
cmd/opencodereview/background_file_test.go:258
Function
TestLoadBackgroundFileHardLimitExcludesWrapper
(t *testing.T)
cmd/opencodereview/background_file_test.go:269
Function
TestLoadBackgroundFileMultiByteRuneCount
(t *testing.T)
cmd/opencodereview/background_file_test.go:278
← previous
next →
4,401–4,500 of 7,484, ranked by callers