MCPcopy Create free account

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

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

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
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:267
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:260
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:89
FunctionTestIsPathExcluded_AllowListGitignore
(t *testing.T)
internal/diff/gitignore_test.go:162
FunctionTestIsPathExcluded_DirectoryPatterns
(t *testing.T)
internal/diff/gitignore_test.go:113
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:201
FunctionTestIsRangeMode
(t *testing.T)
internal/diff/gitignore_test.go:256
FunctionTestIsReserved
(t *testing.T)
internal/tool/definitions_test.go:92
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
FunctionTestLanguageKey_ExtensionlessAndDotfiles
(t *testing.T)
internal/scan/batch_test.go:122
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:1372
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
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:1595
FunctionTestLoadAppConfig_NotExist
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:1585
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
FunctionTestLoadBackgroundFileNotFound
(t *testing.T)
cmd/opencodereview/background_file_test.go:25
FunctionTestLoadBackgroundFileOversized
(t *testing.T)
cmd/opencodereview/background_file_test.go:239
FunctionTestLoadBackgroundFileRejectsReservedDelimiters
(t *testing.T)
cmd/opencodereview/background_file_test.go:183
FunctionTestLoadBackgroundFileRelativeToRepo
TestLoadBackgroundFileRelativeToRepo verifies the end-to-end path: a relative --background-file argument resolves against the repo directory, not the
cmd/opencodereview/background_file_test.go:78
FunctionTestLoadBackgroundFileSoftLimit
(t *testing.T)
cmd/opencodereview/background_file_test.go:227
FunctionTestLoadComments_LaterCheckpointSupersedes
(t *testing.T)
internal/session/comments_test.go:46
FunctionTestLoadComments_MissingSession
(t *testing.T)
internal/session/comments_test.go:76
FunctionTestLoadComments_ReturnsCommentsInOrder
(t *testing.T)
internal/session/comments_test.go:12
FunctionTestLoadDefault
(t *testing.T)
internal/config/toolsconfig/toolsconfig_test.go:13
FunctionTestLoadDefault
(t *testing.T)
internal/config/testconnection/testconnection_test.go:10
FunctionTestLoadDefaultIndependentCopies
(t *testing.T)
internal/config/toolsconfig/toolsconfig_test.go:100
FunctionTestLoadDefaultInvalidJSON
(t *testing.T)
internal/config/toolsconfig/toolsconfig_test.go:90
FunctionTestLoadDefault_FieldsPopulated
(t *testing.T)
internal/config/template/template_test.go:217
FunctionTestLoadDefault_HasNoScanFields
(t *testing.T)
internal/config/template/template_test.go:135
FunctionTestLoadDefault_PlaceholdersPresent
(t *testing.T)
internal/config/template/template_test.go:266
FunctionTestLoadDefault_Tool
TestLoadDefault_Tool guards the tool-call round trip added for #1357: the connectivity test only exercises the request shape that actually breaks if i
internal/config/testconnection/testconnection_test.go:100
FunctionTestLoadDelegateContext_BackgroundFile
(t *testing.T)
cmd/opencodereview/delegate_exec_test.go:247
FunctionTestLoadDelegateContext_NotGitRepo
(t *testing.T)
cmd/opencodereview/delegate_exec_test.go:265
FunctionTestLoadDetail_ReturnsItems
(t *testing.T)
internal/session/list_test.go:82
FunctionTestLoadExistingAPIKey_CustomTab_HasKey
--- loadExistingAPIKey tests ---
cmd/opencodereview/provider_tui_funcs_test.go:1610
← previousnext →4,201–4,300 of 7,169, ranked by callers