MCPcopy Create free account

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

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

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:98
FunctionTestIsCommitMode
(t *testing.T)
internal/diff/gitignore_test.go:288
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:110
FunctionTestIsPathExcluded_AllowListGitignore
(t *testing.T)
internal/diff/gitignore_test.go:183
FunctionTestIsPathExcluded_DirectoryPatterns
(t *testing.T)
internal/diff/gitignore_test.go:134
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:222
FunctionTestIsPerlRegexpCompileError
(t *testing.T)
internal/tool/code_search_test.go:396
FunctionTestIsRangeMode
(t *testing.T)
internal/diff/gitignore_test.go:277
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
FunctionTestLLMHelpIncludesModels
(t *testing.T)
cmd/opencodereview/smallfiles_test.go:120
FunctionTestLLMTestCommand_UsesDefaultConfigPath
(t *testing.T)
cmd/opencodereview/llm_cmd_test.go:219
FunctionTestLLMTestTimeout
(t *testing.T)
cmd/opencodereview/llm_cmd_test.go:16
FunctionTestLanguageKey_ExtensionlessAndDotfiles
(t *testing.T)
internal/scan/batch_test.go:122
FunctionTestLargeDeniedInventory
(test *testing.T)
internal/behaviortask/scope_test.go:66
FunctionTestLargeInventoryIsPagedBeforeFirstRequest
(test *testing.T)
internal/behaviortask/context_test.go:94
FunctionTestLazyFileWriter_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
FunctionTestLazyFileWriter_JSONKeepsBytesUnchanged
(t *testing.T)
cmd/opencodereview/output_file_test.go:542
FunctionTestLazyFileWriter_NewFileUsesCreatePermissions
(t *testing.T)
cmd/opencodereview/output_file_test.go:358
FunctionTestLazyFileWriter_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
FunctionTestLazyFileWriter_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
FunctionTestLazyFileWriter_PreservesSymlinkTarget
(t *testing.T)
cmd/opencodereview/output_file_test.go:468
FunctionTestLazyFileWriter_RenameFailureLeavesTargetAndCleansTemp
(t *testing.T)
cmd/opencodereview/output_file_test.go:397
FunctionTestLazyFileWriter_ReplacesExistingFileOnlyOnClose
(t *testing.T)
cmd/opencodereview/output_file_test.go:304
FunctionTestLazyFileWriter_TextStripsAnsi
(t *testing.T)
cmd/opencodereview/output_file_test.go:518
FunctionTestLazyFileWriter_WriteCommitsFileAndPrintsHintOnClose
(t *testing.T)
cmd/opencodereview/output_file_test.go:259
FunctionTestLazyFileWriter_WriteFailureLeavesExistingFileUntouched
(t *testing.T)
cmd/opencodereview/output_file_test.go:431
FunctionTestLegacyLLMShadowWarning
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:1431
FunctionTestLegacyToolsCannotCompleteBehavior
(test *testing.T)
internal/behaviortask/runner_test.go:267
FunctionTestLevenshtein
(t *testing.T)
cmd/opencodereview/flag_suggest_test.go:14
FunctionTestLimitErrorBodyForLog_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
FunctionTestLimitedAndTailBuffers
(t *testing.T)
acp/internal/orchestrator/internal_test.go:165
FunctionTestListAllTools_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
FunctionTestListCursorPrefix_Active
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:175
FunctionTestListCursorPrefix_Inactive
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:182
FunctionTestListProviders_Order
(t *testing.T)
internal/llm/providers_test.go:109
FunctionTestListProviders_ReturnsCopy
(t *testing.T)
internal/llm/providers_test.go:125
FunctionTestListProviders_ReturnsSortedProviders
(t *testing.T)
internal/llm/providers_test.go:168
FunctionTestListSessions
(t *testing.T)
internal/viewer/store_test.go:255
FunctionTestListSessions_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
FunctionTestListSessions_MissingDirReturnsEmptySlice
(t *testing.T)
internal/session/list_test.go:15
FunctionTestListSessions_SkipsUnreadableFiles
(t *testing.T)
internal/viewer/store_load_test.go:613
FunctionTestListSessions_SortsAndAggregates
(t *testing.T)
internal/session/list_test.go:37
FunctionTestLiteralPathBatches
(test *testing.T)
internal/behaviortask/scope_test.go:108
FunctionTestLlmComment_JSON
(t *testing.T)
internal/model/model_test.go:155
FunctionTestLlmComment_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
FunctionTestLoadAppConfig_InvalidJSON
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:1654
FunctionTestLoadAppConfig_NotExist
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:1644
FunctionTestLoadBackgroundFileControlCharRemoval
(t *testing.T)
cmd/opencodereview/background_file_test.go:117
FunctionTestLoadBackgroundFileDelimiters
(t *testing.T)
cmd/opencodereview/background_file_test.go:166
FunctionTestLoadBackgroundFileDirectory
(t *testing.T)
cmd/opencodereview/background_file_test.go:252
FunctionTestLoadBackgroundFileEmpty
(t *testing.T)
cmd/opencodereview/background_file_test.go:98
FunctionTestLoadBackgroundFileHardLimit
(t *testing.T)
cmd/opencodereview/background_file_test.go:258
FunctionTestLoadBackgroundFileHardLimitExcludesWrapper
(t *testing.T)
cmd/opencodereview/background_file_test.go:269
FunctionTestLoadBackgroundFileMultiByteRuneCount
(t *testing.T)
cmd/opencodereview/background_file_test.go:278
← previousnext →4,401–4,500 of 7,484, ranked by callers