MCPcopy Create free account

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

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

FunctionTestCheckPresetsImport
(t *testing.T)
internal/llm/gen/check_test.go:91
FunctionTestCheckPresetsImportLineTerminators
(t *testing.T)
internal/llm/gen/check_test.go:163
FunctionTestCheckPresetsImportWhitespace
(t *testing.T)
internal/llm/gen/check_test.go:134
FunctionTestCheckRejectsDuplicateRegistryModels
(t *testing.T)
internal/llm/gen/check_test.go:221
FunctionTestCheckRequiresExistingFile
(t *testing.T)
internal/llm/gen/check_test.go:191
FunctionTestChecksumFilenameNoVersion
(t *testing.T)
internal/release/asset_naming_test.go:177
FunctionTestClarificationMergeCompatibilityAndLists
(t *testing.T)
acp/internal/intent/natural_test.go:243
FunctionTestClassifyAttempt
(t *testing.T)
internal/llm/retry_report_test.go:81
FunctionTestClassifyAttemptTwoHundredFallsThroughToError
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
FunctionTestClassifyBoundaryError
--- 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
FunctionTestClassifyItemError
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
FunctionTestClassifyMainLoopStop
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
FunctionTestClassifyStreamError
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
FunctionTestClearCfgActiveModelIfDeleted
(t *testing.T)
cmd/opencodereview/provider_tui_rollback_test.go:50
FunctionTestClient_NameAndTools
(t *testing.T)
internal/mcp/client_test.go:204
FunctionTestCloneCustomProviderList
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:691
FunctionTestCloneCustomProvidersMap
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:669
FunctionTestCloneCustomProvidersMap_Nil
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:684
FunctionTestCloneProviderEntry_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
FunctionTestCloneProviderEntry_NilExtraBody
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:263
FunctionTestCloneProviderEntry_NilRetryCodesAndExtraHeaders
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:347
FunctionTestCloneProviderEntry_TimeoutAndRetryCodes
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:316
FunctionTestCloneProviderEntry_WithExtraBody
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:203
FunctionTestClonedLegacyManifestHasNonNilExcluded
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
FunctionTestCloseAll_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
FunctionTestCloseAll_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
FunctionTestCloseAll_ResponsiveServersCloseCleanly
TestCloseAll_ResponsiveServersCloseCleanly pins the unchanged behavior for well-behaved servers: close is quick and error-free.
internal/mcp/closeall_test.go:80
FunctionTestCloseAll_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
FunctionTestCloseAll_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
FunctionTestCloseAll_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
FunctionTestCloseAll_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
FunctionTestCodeAccessConcurrentSides
(test *testing.T)
internal/tool/code_access_test.go:140
FunctionTestCodeAccessEmptyAndMissingTrees
(test *testing.T)
internal/tool/code_access_test.go:180
FunctionTestCodeAccessSides
(test *testing.T)
internal/tool/code_access_test.go:70
FunctionTestCodeAndLogMarkdownPreserveFencesAndNewlines
(t *testing.T)
acp/internal/adapter/presentation/markdown_test.go:11
FunctionTestCodeCommentProvider_Execute
(t *testing.T)
internal/tool/code_comment_test.go:292
FunctionTestCodeReviewResult_JSON
(t *testing.T)
internal/model/model_test.go:181
FunctionTestCodeSearchProvider_Execute_AllowsDoubleDotInFilename
(t *testing.T)
internal/tool/code_search_test.go:649
FunctionTestCodeSearchProvider_Execute_BlankSearchText
(t *testing.T)
internal/tool/code_search_test.go:545
FunctionTestCodeSearchProvider_Execute_CaseSensitive
(t *testing.T)
internal/tool/code_search_test.go:668
FunctionTestCodeSearchProvider_Execute_Found
(t *testing.T)
internal/tool/code_search_test.go:556
FunctionTestCodeSearchProvider_Execute_PerlRegexp
(t *testing.T)
internal/tool/code_search_test.go:684
FunctionTestCodeSearchProvider_Execute_PropagatesGitFailure
(t *testing.T)
internal/tool/code_search_test.go:571
FunctionTestCodeSearchProvider_Execute_RejectsTraversalPattern
(t *testing.T)
internal/tool/code_search_test.go:617
FunctionTestCodeSearchProvider_Execute_WithFilePatterns
(t *testing.T)
internal/tool/code_search_test.go:589
FunctionTestCodeSearchProvider_Tool
(t *testing.T)
internal/tool/code_search_test.go:538
FunctionTestCollectCustomProviders_Nil
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:475
FunctionTestCollectCustomProviders_NilConfig
--- collectCustomProviders tests ---
cmd/opencodereview/provider_tui_test.go:1091
FunctionTestCollectCustomProviders_NilMap
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:482
FunctionTestCollectCustomProviders_ReadsCustomProviders
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:1098
FunctionTestCollectCustomProviders_Sorted
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:489
FunctionTestCollectCustomProviders_SortedByName
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:1117
FunctionTestCollectPendingComments_AwaitsPool
TestCollectPendingComments_AwaitsPool covers the worker-pool drain branch of CollectPendingComments.
internal/reviewtask/loop_execute_test.go:129
FunctionTestCollectPendingComments_NilPool
(t *testing.T)
internal/reviewtask/runner_test.go:12
FunctionTestCollectToolDefs_Basic
(t *testing.T)
internal/mcp/provider_test.go:173
FunctionTestCollectToolDefs_Dedup
(t *testing.T)
internal/mcp/provider_test.go:233
FunctionTestCollectToolDefs_FiltersReserved
(t *testing.T)
internal/mcp/provider_test.go:196
FunctionTestCollectToolDefs_FiltersUnregistered
(t *testing.T)
internal/mcp/provider_test.go:214
FunctionTestCollectorRejectsInvalidInput
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
FunctionTestColorFlagsThroughRootCmd
TestColorFlagsThroughRootCmd drives the real command tree so the flags and the PersistentPreRunE validation and resolution are exercised together.
cmd/opencodereview/color_test.go:113
FunctionTestColorize
(t *testing.T)
cmd/opencodereview/color_test.go:96
FunctionTestCommaResourcePathGetsVisibleRejectionWithoutRunningOCR
(t *testing.T)
acp/internal/adapter/resources_test.go:165
FunctionTestCommandDiscoveryClaimsLiveSessionOnce
(t *testing.T)
acp/internal/adapter/discovery_test.go:16
FunctionTestCommandExitCodeAndLocalOutcomeError
(t *testing.T)
acp/internal/orchestrator/internal_test.go:191
FunctionTestCommandNeedsGit
(t *testing.T)
cmd/opencodereview/flags_test.go:243
FunctionTestCommandNeedsGit_RootVersionFlag
(t *testing.T)
cmd/opencodereview/flags_test.go:310
FunctionTestCommandNeedsGit_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
FunctionTestCommandsRejectToolsOverride
(t *testing.T)
cmd/opencodereview/review_cmd_test.go:17
FunctionTestCommandsToolFlags
(t *testing.T)
cmd/opencodereview/review_cmd_test.go:41
FunctionTestCommandsUseTaskToolBindings
(test *testing.T)
cmd/opencodereview/shared_llmruntime_test.go:252
FunctionTestCommentCollector_AddAndComments
(t *testing.T)
internal/tool/comment_collector_test.go:16
FunctionTestCommentCollector_CommentsForPath
(t *testing.T)
internal/tool/comment_collector_test.go:40
FunctionTestCommentCollector_CommentsReturnsDefensiveCopy
(t *testing.T)
internal/tool/comment_collector_test.go:30
FunctionTestCommentCollector_RemoveByPathAndIndices
(t *testing.T)
internal/tool/comment_collector_test.go:122
FunctionTestCommentCollector_RemoveByPathAndIndices_NoMatch
(t *testing.T)
internal/tool/comment_collector_test.go:148
FunctionTestCommentCollector_ReplaceSince
(t *testing.T)
internal/tool/comment_collector_test.go:92
FunctionTestCommentCollector_ReplaceSinceOutOfBounds
(t *testing.T)
internal/tool/comment_collector_test.go:113
FunctionTestCommentCollector_ReplaceSince_NegativeSnap
(t *testing.T)
internal/tool/comment_collector_test.go:157
FunctionTestCommentCollector_ReplaceSince_Zero
(t *testing.T)
internal/tool/comment_collector_test.go:168
FunctionTestCommentCollector_SinceEdgeCases
(t *testing.T)
internal/tool/comment_collector_test.go:80
FunctionTestCommentCollector_SnapshotAndSince
(t *testing.T)
internal/tool/comment_collector_test.go:60
FunctionTestCommentLifecycleKeepsKeyWaitsAndRelocationAccounting
(t *testing.T)
internal/reviewtask/lifecycle_test.go:39
FunctionTestCommentRepairMessage
(t *testing.T)
internal/tool/comment_args_repair_test.go:542
FunctionTestCommentWorkerPool_AwaitEmpty
(t *testing.T)
internal/reviewtask/pool_test.go:99
FunctionTestCommentWorkerPool_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
FunctionTestCommentWorkerPool_AwaitKeyUnknown
TestCommentWorkerPool_AwaitKeyUnknown verifies waiting on a key with no submissions returns immediately.
internal/reviewtask/pool_test.go:229
FunctionTestCommentWorkerPool_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
FunctionTestCommentWorkerPool_Concurrency
(t *testing.T)
internal/reviewtask/pool_test.go:74
FunctionTestCommentWorkerPool_ErrorDoesNotBlock
(t *testing.T)
internal/reviewtask/pool_test.go:55
FunctionTestCommentWorkerPool_PanicIsIsolated
(t *testing.T)
internal/reviewtask/pool_test.go:107
FunctionTestCommentWorkerPool_SubmitAndAwait
(t *testing.T)
internal/reviewtask/pool_test.go:31
FunctionTestCommitDiffMergeCommitReviewsFirstParentDiff
TestCommitDiffMergeCommitReviewsFirstParentDiff covers `ocr review --commit <merge>`: plain `git show` renders merge commits as a combined diff ("diff
internal/diff/git_test.go:800
FunctionTestCommitDiffSurvivesExternalDiffTool
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
FunctionTestCommitDiffTreatsOptionLikeRefAsRevision
(t *testing.T)
internal/diff/git_test.go:530
FunctionTestCompare
(t *testing.T)
internal/session/compare_test.go:46
FunctionTestCompareKeepsIdentityFieldsSeparate
(t *testing.T)
internal/session/compare_test.go:36
FunctionTestCompare_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
FunctionTestCompare_SortedOrderIsStableAcrossInputOrder
TestCompare_SortedOrderIsStableAcrossInputOrder pins that shuffling the inputs cannot change the output, which is what keeps --json diffable.
internal/session/compare_test.go:305
FunctionTestComparisonDefinitionErrors
(test *testing.T)
internal/config/toolsconfig/comparison_test.go:86
FunctionTestComparisonPlanningReferences
(test *testing.T)
internal/agent/agent_test.go:27
← previousnext →3,501–3,600 of 7,169, ranked by callers