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
TestCheckPresetsImport
(t *testing.T)
internal/llm/gen/check_test.go:91
Function
TestCheckPresetsImportLineTerminators
(t *testing.T)
internal/llm/gen/check_test.go:163
Function
TestCheckPresetsImportWhitespace
(t *testing.T)
internal/llm/gen/check_test.go:134
Function
TestCheckRejectsDuplicateRegistryModels
(t *testing.T)
internal/llm/gen/check_test.go:221
Function
TestCheckRequiresExistingFile
(t *testing.T)
internal/llm/gen/check_test.go:191
Function
TestChecksumFilenameNoVersion
(t *testing.T)
internal/release/asset_naming_test.go:177
Function
TestClarificationMergeCompatibilityAndLists
(t *testing.T)
acp/internal/intent/natural_test.go:243
Function
TestClassifyAttempt
(t *testing.T)
internal/llm/retry_report_test.go:81
Function
TestClassifyAttemptTwoHundredFallsThroughToError
A 2xx carries no error information, so the error decides. This is the path the client-boundary correction feeds when a 200 turns out to be truncated.
internal/llm/retry_report_test.go:121
Function
TestClassifyBoundaryError
--- classification units --- The false return is the contract: an error the boundary cannot recognize is left alone rather than bucketed as unknown, b
internal/llm/retry_boundary_test.go:603
Function
TestClassifyItemError
classifyItemError maps a per-file review error to a coverage FailureClass and a static, leak-free reason. The mapping must recognize the sentinels thr
internal/agent/coverage_test.go:1023
Function
TestClassifyMainLoopStop
classifyMainLoopStop keeps the unknown class for the empty-round and compression exits, but each reason must name its trigger: in --format json runs t
internal/agent/coverage_test.go:1064
Function
TestClassifyStreamError
Unlike the boundary classifier this one always answers, because the caller already knows the failure came from an established stream. The fallback is
internal/llm/retry_boundary_test.go:652
Function
TestClearCfgActiveModelIfDeleted
(t *testing.T)
cmd/opencodereview/provider_tui_rollback_test.go:50
Function
TestClient_NameAndTools
(t *testing.T)
internal/mcp/client_test.go:204
Function
TestCloneCustomProviderList
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:691
Function
TestCloneCustomProvidersMap
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:669
Function
TestCloneCustomProvidersMap_Nil
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:684
Function
TestCloneProviderEntry_CopiesEveryField
cloneProviderEntry lists fields by hand, which is how timeout_sec and extra_headers came to be silently dropped on the save-rollback paths. This fails
cmd/opencodereview/provider_tui_funcs_test.go:283
Function
TestCloneProviderEntry_NilExtraBody
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:263
Function
TestCloneProviderEntry_NilRetryCodesAndExtraHeaders
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:347
Function
TestCloneProviderEntry_TimeoutAndRetryCodes
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:316
Function
TestCloneProviderEntry_WithExtraBody
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:203
Function
TestClonedLegacyManifestHasNonNilExcluded
A manifest persisted before the excluded set existed decodes without one; the copy handed to consumers must still render it as [] rather than null.
internal/session/manifest_test.go:1012
Function
TestCloseAll_JoinsPerServerErrorMessages
TestCloseAll_JoinsPerServerErrorMessages checks the error aggregation: every failing server is named, in a single joined message, and quiet servers do
internal/mcp/closeall_test.go:101
Function
TestCloseAll_MixedFleetRealisticProfile
TestCloseAll_MixedFleetRealisticProfile models a realistic fleet: healthy servers, hung servers, and servers that exit non-zero, all closing at once.
internal/mcp/closeall_stress_test.go:56
Function
TestCloseAll_ResponsiveServersCloseCleanly
TestCloseAll_ResponsiveServersCloseCleanly pins the unchanged behavior for well-behaved servers: close is quick and error-free.
internal/mcp/closeall_test.go:80
Function
TestCloseAll_SlowCooperativeServerIsWaitedFor
TestCloseAll_SlowCooperativeServerIsWaitedFor covers the distinction the escalation exists to make: a server that needs ~1.2s to wind down after stdin
internal/mcp/closeall_stress_test.go:110
Function
TestCloseAll_StressManyUnresponsiveServers
Stress coverage for issue #1141: the acceptance criterion says MCP shutdown must stay bounded "regardless of how many stdio servers are configured". T
internal/mcp/closeall_stress_test.go:26
Function
TestCloseAll_TimeoutPreservesCollectedErrors
TestCloseAll_TimeoutPreservesCollectedErrors checks that when the ctx deadline fires, errors from servers that already finished closing are not droppe
internal/mcp/closeall_test.go:131
Function
TestCloseAll_UnresponsiveServersStayWithinBudget
TestCloseAll_UnresponsiveServersStayWithinBudget covers the issue #1141 acceptance criterion: total MCP shutdown stays well inside 3s no matter how un
internal/mcp/closeall_test.go:48
Function
TestCodeAccessConcurrentSides
(test *testing.T)
internal/tool/code_access_test.go:140
Function
TestCodeAccessEmptyAndMissingTrees
(test *testing.T)
internal/tool/code_access_test.go:180
Function
TestCodeAccessSides
(test *testing.T)
internal/tool/code_access_test.go:70
Function
TestCodeAndLogMarkdownPreserveFencesAndNewlines
(t *testing.T)
acp/internal/adapter/presentation/markdown_test.go:11
Function
TestCodeCommentProvider_Execute
(t *testing.T)
internal/tool/code_comment_test.go:292
Function
TestCodeReviewResult_JSON
(t *testing.T)
internal/model/model_test.go:181
Function
TestCodeSearchProvider_Execute_AllowsDoubleDotInFilename
(t *testing.T)
internal/tool/code_search_test.go:649
Function
TestCodeSearchProvider_Execute_BlankSearchText
(t *testing.T)
internal/tool/code_search_test.go:545
Function
TestCodeSearchProvider_Execute_CaseSensitive
(t *testing.T)
internal/tool/code_search_test.go:668
Function
TestCodeSearchProvider_Execute_Found
(t *testing.T)
internal/tool/code_search_test.go:556
Function
TestCodeSearchProvider_Execute_PerlRegexp
(t *testing.T)
internal/tool/code_search_test.go:684
Function
TestCodeSearchProvider_Execute_PropagatesGitFailure
(t *testing.T)
internal/tool/code_search_test.go:571
Function
TestCodeSearchProvider_Execute_RejectsTraversalPattern
(t *testing.T)
internal/tool/code_search_test.go:617
Function
TestCodeSearchProvider_Execute_WithFilePatterns
(t *testing.T)
internal/tool/code_search_test.go:589
Function
TestCodeSearchProvider_Tool
(t *testing.T)
internal/tool/code_search_test.go:538
Function
TestCollectCustomProviders_Nil
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:475
Function
TestCollectCustomProviders_NilConfig
--- collectCustomProviders tests ---
cmd/opencodereview/provider_tui_test.go:1091
Function
TestCollectCustomProviders_NilMap
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:482
Function
TestCollectCustomProviders_ReadsCustomProviders
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:1098
Function
TestCollectCustomProviders_Sorted
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:489
Function
TestCollectCustomProviders_SortedByName
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:1117
Function
TestCollectPendingComments_AwaitsPool
TestCollectPendingComments_AwaitsPool covers the worker-pool drain branch of CollectPendingComments.
internal/reviewtask/loop_execute_test.go:129
Function
TestCollectPendingComments_NilPool
(t *testing.T)
internal/reviewtask/runner_test.go:12
Function
TestCollectToolDefs_Basic
(t *testing.T)
internal/mcp/provider_test.go:173
Function
TestCollectToolDefs_Dedup
(t *testing.T)
internal/mcp/provider_test.go:233
Function
TestCollectToolDefs_FiltersReserved
(t *testing.T)
internal/mcp/provider_test.go:196
Function
TestCollectToolDefs_FiltersUnregistered
(t *testing.T)
internal/mcp/provider_test.go:214
Function
TestCollectorRejectsInvalidInput
Invalid input is dropped rather than recorded. An unclassifiable correction is the dangerous case: writing it through would put an empty or bogus clas
internal/llm/retry_report_test.go:357
Function
TestColorFlagsThroughRootCmd
TestColorFlagsThroughRootCmd drives the real command tree so the flags and the PersistentPreRunE validation and resolution are exercised together.
cmd/opencodereview/color_test.go:113
Function
TestColorize
(t *testing.T)
cmd/opencodereview/color_test.go:96
Function
TestCommaResourcePathGetsVisibleRejectionWithoutRunningOCR
(t *testing.T)
acp/internal/adapter/resources_test.go:165
Function
TestCommandDiscoveryClaimsLiveSessionOnce
(t *testing.T)
acp/internal/adapter/discovery_test.go:16
Function
TestCommandExitCodeAndLocalOutcomeError
(t *testing.T)
acp/internal/orchestrator/internal_test.go:191
Function
TestCommandNeedsGit
(t *testing.T)
cmd/opencodereview/flags_test.go:243
Function
TestCommandNeedsGit_RootVersionFlag
(t *testing.T)
cmd/opencodereview/flags_test.go:310
Function
TestCommandNeedsGit_Subcommands
TestCommandNeedsGit_Subcommands verifies that the git check keys off the top-level command rather than the leaf: the delegate subcommands shell out to
cmd/opencodereview/flags_test.go:275
Function
TestCommandsRejectToolsOverride
(t *testing.T)
cmd/opencodereview/review_cmd_test.go:17
Function
TestCommandsToolFlags
(t *testing.T)
cmd/opencodereview/review_cmd_test.go:41
Function
TestCommandsUseTaskToolBindings
(test *testing.T)
cmd/opencodereview/shared_llmruntime_test.go:252
Function
TestCommentCollector_AddAndComments
(t *testing.T)
internal/tool/comment_collector_test.go:16
Function
TestCommentCollector_CommentsForPath
(t *testing.T)
internal/tool/comment_collector_test.go:40
Function
TestCommentCollector_CommentsReturnsDefensiveCopy
(t *testing.T)
internal/tool/comment_collector_test.go:30
Function
TestCommentCollector_RemoveByPathAndIndices
(t *testing.T)
internal/tool/comment_collector_test.go:122
Function
TestCommentCollector_RemoveByPathAndIndices_NoMatch
(t *testing.T)
internal/tool/comment_collector_test.go:148
Function
TestCommentCollector_ReplaceSince
(t *testing.T)
internal/tool/comment_collector_test.go:92
Function
TestCommentCollector_ReplaceSinceOutOfBounds
(t *testing.T)
internal/tool/comment_collector_test.go:113
Function
TestCommentCollector_ReplaceSince_NegativeSnap
(t *testing.T)
internal/tool/comment_collector_test.go:157
Function
TestCommentCollector_ReplaceSince_Zero
(t *testing.T)
internal/tool/comment_collector_test.go:168
Function
TestCommentCollector_SinceEdgeCases
(t *testing.T)
internal/tool/comment_collector_test.go:80
Function
TestCommentCollector_SnapshotAndSince
(t *testing.T)
internal/tool/comment_collector_test.go:60
Function
TestCommentLifecycleKeepsKeyWaitsAndRelocationAccounting
(t *testing.T)
internal/reviewtask/lifecycle_test.go:39
Function
TestCommentRepairMessage
(t *testing.T)
internal/tool/comment_args_repair_test.go:542
Function
TestCommentWorkerPool_AwaitEmpty
(t *testing.T)
internal/reviewtask/pool_test.go:99
Function
TestCommentWorkerPool_AwaitKeyConcurrentSubmitOtherKey
TestCommentWorkerPool_AwaitKeyConcurrentSubmitOtherKey is the regression test for the review-path race: one file's goroutine draining its async commen
internal/reviewtask/pool_test.go:173
Function
TestCommentWorkerPool_AwaitKeyUnknown
TestCommentWorkerPool_AwaitKeyUnknown verifies waiting on a key with no submissions returns immediately.
internal/reviewtask/pool_test.go:229
Function
TestCommentWorkerPool_AwaitKeyWaitsForOwnKey
TestCommentWorkerPool_AwaitKeyWaitsForOwnKey verifies that AwaitKey blocks until the units submitted under its key complete, without waiting for units
internal/reviewtask/pool_test.go:131
Function
TestCommentWorkerPool_Concurrency
(t *testing.T)
internal/reviewtask/pool_test.go:74
Function
TestCommentWorkerPool_ErrorDoesNotBlock
(t *testing.T)
internal/reviewtask/pool_test.go:55
Function
TestCommentWorkerPool_PanicIsIsolated
(t *testing.T)
internal/reviewtask/pool_test.go:107
Function
TestCommentWorkerPool_SubmitAndAwait
(t *testing.T)
internal/reviewtask/pool_test.go:31
Function
TestCommitDiffMergeCommitReviewsFirstParentDiff
TestCommitDiffMergeCommitReviewsFirstParentDiff covers `ocr review --commit <merge>`: plain `git show` renders merge commits as a combined diff ("diff
internal/diff/git_test.go:800
Function
TestCommitDiffSurvivesExternalDiffTool
TestCommitDiffSurvivesExternalDiffTool covers the ModeCommit call site (git show <commit>), which likewise must pass --no-ext-diff so that a user's ex
internal/diff/git_test.go:506
Function
TestCommitDiffTreatsOptionLikeRefAsRevision
(t *testing.T)
internal/diff/git_test.go:530
Function
TestCompare
(t *testing.T)
internal/session/compare_test.go:46
Function
TestCompareKeepsIdentityFieldsSeparate
(t *testing.T)
internal/session/compare_test.go:36
Function
TestCompare_SortBreaksTiesOnSnippet
TestCompare_SortBreaksTiesOnSnippet pins that two findings differing only in their snippet - and therefore living under different keys in the map the
internal/session/compare_test.go:326
Function
TestCompare_SortedOrderIsStableAcrossInputOrder
TestCompare_SortedOrderIsStableAcrossInputOrder pins that shuffling the inputs cannot change the output, which is what keeps --json diffable.
internal/session/compare_test.go:305
Function
TestComparisonDefinitionErrors
(test *testing.T)
internal/config/toolsconfig/comparison_test.go:86
Function
TestComparisonPlanningReferences
(test *testing.T)
internal/agent/agent_test.go:27
← previous
next →
3,501–3,600 of 7,169, ranked by callers