Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alibaba/open-code-review
/ functions
Functions
7,169 in github.com/alibaba/open-code-review
⨍
Functions
7,169
◇
Types & classes
774
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
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:267
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:260
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:89
Function
TestIsPathExcluded_AllowListGitignore
(t *testing.T)
internal/diff/gitignore_test.go:162
Function
TestIsPathExcluded_DirectoryPatterns
(t *testing.T)
internal/diff/gitignore_test.go:113
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:201
Function
TestIsRangeMode
(t *testing.T)
internal/diff/gitignore_test.go:256
Function
TestIsReserved
(t *testing.T)
internal/tool/definitions_test.go:92
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
Function
TestLanguageKey_ExtensionlessAndDotfiles
(t *testing.T)
internal/scan/batch_test.go:122
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:1372
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
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:1595
Function
TestLoadAppConfig_NotExist
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:1585
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
Function
TestLoadBackgroundFileNotFound
(t *testing.T)
cmd/opencodereview/background_file_test.go:25
Function
TestLoadBackgroundFileOversized
(t *testing.T)
cmd/opencodereview/background_file_test.go:239
Function
TestLoadBackgroundFileRejectsReservedDelimiters
(t *testing.T)
cmd/opencodereview/background_file_test.go:183
Function
TestLoadBackgroundFileRelativeToRepo
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
Function
TestLoadBackgroundFileSoftLimit
(t *testing.T)
cmd/opencodereview/background_file_test.go:227
Function
TestLoadComments_LaterCheckpointSupersedes
(t *testing.T)
internal/session/comments_test.go:46
Function
TestLoadComments_MissingSession
(t *testing.T)
internal/session/comments_test.go:76
Function
TestLoadComments_ReturnsCommentsInOrder
(t *testing.T)
internal/session/comments_test.go:12
Function
TestLoadDefault
(t *testing.T)
internal/config/toolsconfig/toolsconfig_test.go:13
Function
TestLoadDefault
(t *testing.T)
internal/config/testconnection/testconnection_test.go:10
Function
TestLoadDefaultIndependentCopies
(t *testing.T)
internal/config/toolsconfig/toolsconfig_test.go:100
Function
TestLoadDefaultInvalidJSON
(t *testing.T)
internal/config/toolsconfig/toolsconfig_test.go:90
Function
TestLoadDefault_FieldsPopulated
(t *testing.T)
internal/config/template/template_test.go:217
Function
TestLoadDefault_HasNoScanFields
(t *testing.T)
internal/config/template/template_test.go:135
Function
TestLoadDefault_PlaceholdersPresent
(t *testing.T)
internal/config/template/template_test.go:266
Function
TestLoadDefault_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
Function
TestLoadDelegateContext_BackgroundFile
(t *testing.T)
cmd/opencodereview/delegate_exec_test.go:247
Function
TestLoadDelegateContext_NotGitRepo
(t *testing.T)
cmd/opencodereview/delegate_exec_test.go:265
Function
TestLoadDetail_ReturnsItems
(t *testing.T)
internal/session/list_test.go:82
Function
TestLoadExistingAPIKey_CustomTab_HasKey
--- loadExistingAPIKey tests ---
cmd/opencodereview/provider_tui_funcs_test.go:1610
← previous
next →
4,201–4,300 of 7,169, ranked by callers