MCPcopy Create free account

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

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

FunctionTestCollectToolDefs_FiltersReserved
(t *testing.T)
internal/mcp/provider_test.go:206
FunctionTestCollectToolDefs_FiltersUnregistered
(t *testing.T)
internal/mcp/provider_test.go:224
FunctionTestCollectToolDefs_SchemaMatchesExecutedServer
(t *testing.T)
internal/mcp/provider_owner_test.go:53
FunctionTestCollectToolDefs_SkipsNonMCPProvider
(t *testing.T)
internal/mcp/provider_owner_test.go:43
FunctionTestCollectToolDefs_UsesRegisteredOwner
(t *testing.T)
internal/mcp/provider_owner_test.go:18
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
FunctionTestCombinedReportViews
(t *testing.T)
internal/viewer/handler_test.go:64
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
FunctionTestComparisonToolDefinitions
(test *testing.T)
internal/config/toolsconfig/comparison_test.go:16
FunctionTestComparisonToolsReachModelAndManifest
(test *testing.T)
cmd/opencodereview/shared_llmruntime_test.go:23
FunctionTestComplete
(t *testing.T)
internal/tool/response_message_test.go:8
FunctionTestCompleteEnum
TestCompleteEnum verifies the closure returns the provided values with the no-file-completion directive.
cmd/opencodereview/session_display_more_test.go:90
FunctionTestCompleteSessionIDs
(t *testing.T)
cmd/opencodereview/misc_helpers_test.go:67
FunctionTestCompleteSessionIDs_WithSession
TestCompleteSessionIDs_WithSession drives the success loop of the shell completion helper against a real fixture session, covering the prefix-match an
cmd/opencodereview/session_complete_test.go:15
FunctionTestCompletedCopyReleasesThreadBeforeAbort
(t *testing.T)
acp/cmd/ocr-acp/stdio_windows_test.go:138
FunctionTestCompletedCount_EmptyItems
(t *testing.T)
internal/session/resume_test.go:49
FunctionTestCompletedCount_NilState
--- ResumeState.CompletedCount ---
internal/session/resume_test.go:42
FunctionTestCompletedCount_WithItems
(t *testing.T)
internal/session/resume_test.go:56
FunctionTestCompletedOutcomeIsNotRewritten
(t *testing.T)
acp/internal/orchestrator/termination_test.go:99
FunctionTestCompletionTokenLimit
(t *testing.T)
internal/config/template/template_test.go:201
FunctionTestComposedResolverCanonicalConfig
(t *testing.T)
internal/config/rules/canonical_config_test.go:39
FunctionTestComposedResolverCanonicalConfig_ProjectRuleChangeChangesOutput
(t *testing.T)
internal/config/rules/canonical_config_test.go:77
FunctionTestCompressionBudgetAtWarningLimit
(test *testing.T)
internal/llmloop/compression_budget_test.go:453
FunctionTestCompressionBudgetIgnoresNonShrinkingSummary
(test *testing.T)
internal/llmloop/compression_budget_test.go:244
FunctionTestCompressionBudgetIncludesNewSummary
(test *testing.T)
internal/llmloop/compression_budget_test.go:75
FunctionTestCompressionBudgetMainLoopContinues
(test *testing.T)
internal/llmloop/compression_budget_test.go:154
FunctionTestCompressionBudgetNoRoom
(test *testing.T)
internal/llmloop/compression_budget_test.go:123
FunctionTestCompressionBudgetOutputLimitWithoutGenerationHeadroom
(test *testing.T)
internal/llmloop/compression_budget_test.go:202
FunctionTestCompressionBudgetPartition
(test *testing.T)
internal/llmloop/compression_budget_test.go:19
FunctionTestCompressionBudgetPreservesUnchangedHistory
(test *testing.T)
internal/llmloop/compression_budget_test.go:49
FunctionTestCompressionBudgetRejectionPreservesFinalSubmission
(t *testing.T)
internal/llmloop/request_budget_test.go:90
FunctionTestCompressionBudgetRejectsOversizedSummary
(test *testing.T)
internal/llmloop/compression_budget_test.go:106
FunctionTestCompressionBudgetRequiresFinishedVisibleSummary
(test *testing.T)
internal/llmloop/compression_budget_test.go:426
FunctionTestCompressionBudgetRetryMessages
(test *testing.T)
internal/llmloop/compression_budget_test.go:356
FunctionTestCompressionBudgetRetryThenToolResult
(test *testing.T)
internal/llmloop/compression_budget_test.go:383
FunctionTestCompressionBudgetStrictBoundary
(test *testing.T)
internal/llmloop/compression_budget_test.go:145
FunctionTestCompressionEnforcesVisibleReservation
(t *testing.T)
internal/llmloop/compression_budget_test.go:335
FunctionTestCompressionExtraGenerationCannotExpandHistory
(t *testing.T)
internal/llmloop/compression_budget_test.go:316
FunctionTestCompressionInlineReasoning
(t *testing.T)
internal/llmloop/compression_budget_test.go:293
FunctionTestCompressionKeepsObservationReplay
(test *testing.T)
internal/behaviortask/compression_test.go:17
FunctionTestCompressionLeavesRoomForReasoning
(t *testing.T)
internal/llmloop/compression_budget_test.go:261
FunctionTestCompressionSummary
(t *testing.T)
internal/llmloop/compression_test.go:175
FunctionTestCompression_CrossFileIsolation
(t *testing.T)
internal/llmloop/runner_test.go:514
FunctionTestComputeLineDiff
(t *testing.T)
internal/suggestdiff/diff_test.go:10
FunctionTestComputeLineDiff_ContextContent
(t *testing.T)
internal/suggestdiff/diff_test.go:174
FunctionTestComputeLineDiff_FuzzyMatchPreservesRawChanges
(t *testing.T)
internal/suggestdiff/diff_test.go:110
FunctionTestComputeLineDiff_FuzzyMatchPreservesRawChangesWithContext
(t *testing.T)
internal/suggestdiff/diff_test.go:144
FunctionTestConcurrencyFlagUsageUsesSubtask
(t *testing.T)
cmd/opencodereview/flags_test.go:389
FunctionTestConcurrentTransitions
Concurrent registration and transitions on distinct items must be race-free (run with -race) and produce exactly-once coverage.
internal/session/manifest_test.go:835
FunctionTestConfigRoundTripKeepsAWSSettings
TestConfigRoundTripKeepsAWSSettings is the regression test for a silent loss: config is unmarshalled into Config and marshalled back on every write, s
cmd/opencodereview/bedrock_config_test.go:21
FunctionTestConfigRoundTripPreservesTimeoutSec
TestConfigRoundTripPreservesTimeoutSec guards against silent config loss: the resolver reads providers.<name>.timeout_sec / llm.timeout_sec (the docs
cmd/opencodereview/config_cmd_test.go:1633
FunctionTestConfigRoundTripPreservesUnknownFields
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:1687
FunctionTestConfirmDeleteCustomModel_SaveFailureRollback
TestConfirmDeleteCustomModel_SaveFailureRollback drives the custom-model delete handler down its save-failure branch and asserts the entry is rolled b
cmd/opencodereview/provider_tui_savefail_test.go:67
FunctionTestConfirmDeleteCustomProviderModel_Guards
TestConfirmDeleteCustomProviderModel_Guards covers the not-user-added and nil-cfg early returns.
cmd/opencodereview/provider_tui_modeltui_test.go:193
FunctionTestConfirmDeleteOfficialModel
TestConfirmDeleteOfficialModel covers deleting a user-added model from an official (preset) provider entry, plus the not-user-added guard.
cmd/opencodereview/provider_tui_modeltui_test.go:222
FunctionTestConfirmDeleteOfficialModelActiveClear
TestConfirmDeleteOfficialModelActiveClear covers the modelTUIModel handler where the deleted model is also the active config model: deletion clears th
cmd/opencodereview/provider_tui_persist_test.go:366
FunctionTestConfirmDeleteOfficialModel_SaveFailureRollback
TestConfirmDeleteOfficialModel_SaveFailureRollback drives the official-model delete handler down its save-failure branch for a user-added model and as
cmd/opencodereview/provider_tui_savefail_test.go:110
FunctionTestConflictingTransitionErrorsAndKeepsFirst
The first terminal state wins and a conflicting later transition returns an error: a late error must not demote a completed item.
internal/session/manifest_test.go:316
FunctionTestConstructorsInstallHeaderTimeoutClient
(t *testing.T)
internal/llm/retry_boundary_test.go:774
FunctionTestConsumeStreamsCanCancelBlockedReaders
(t *testing.T)
acp/internal/orchestrator/runner_test.go:225
← previousnext →3,701–3,800 of 7,390, ranked by callers