Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alibaba/open-code-review
/ functions
Functions
7,390 in github.com/alibaba/open-code-review
⨍
Functions
7,390
◇
Types & classes
806
Function
TestCollectToolDefs_FiltersReserved
(t *testing.T)
internal/mcp/provider_test.go:206
Function
TestCollectToolDefs_FiltersUnregistered
(t *testing.T)
internal/mcp/provider_test.go:224
Function
TestCollectToolDefs_SchemaMatchesExecutedServer
(t *testing.T)
internal/mcp/provider_owner_test.go:53
Function
TestCollectToolDefs_SkipsNonMCPProvider
(t *testing.T)
internal/mcp/provider_owner_test.go:43
Function
TestCollectToolDefs_UsesRegisteredOwner
(t *testing.T)
internal/mcp/provider_owner_test.go:18
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
TestCombinedReportViews
(t *testing.T)
internal/viewer/handler_test.go:64
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
Function
TestComparisonToolDefinitions
(test *testing.T)
internal/config/toolsconfig/comparison_test.go:16
Function
TestComparisonToolsReachModelAndManifest
(test *testing.T)
cmd/opencodereview/shared_llmruntime_test.go:23
Function
TestComplete
(t *testing.T)
internal/tool/response_message_test.go:8
Function
TestCompleteEnum
TestCompleteEnum verifies the closure returns the provided values with the no-file-completion directive.
cmd/opencodereview/session_display_more_test.go:90
Function
TestCompleteSessionIDs
(t *testing.T)
cmd/opencodereview/misc_helpers_test.go:67
Function
TestCompleteSessionIDs_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
Function
TestCompletedCopyReleasesThreadBeforeAbort
(t *testing.T)
acp/cmd/ocr-acp/stdio_windows_test.go:138
Function
TestCompletedCount_EmptyItems
(t *testing.T)
internal/session/resume_test.go:49
Function
TestCompletedCount_NilState
--- ResumeState.CompletedCount ---
internal/session/resume_test.go:42
Function
TestCompletedCount_WithItems
(t *testing.T)
internal/session/resume_test.go:56
Function
TestCompletedOutcomeIsNotRewritten
(t *testing.T)
acp/internal/orchestrator/termination_test.go:99
Function
TestCompletionTokenLimit
(t *testing.T)
internal/config/template/template_test.go:201
Function
TestComposedResolverCanonicalConfig
(t *testing.T)
internal/config/rules/canonical_config_test.go:39
Function
TestComposedResolverCanonicalConfig_ProjectRuleChangeChangesOutput
(t *testing.T)
internal/config/rules/canonical_config_test.go:77
Function
TestCompressionBudgetAtWarningLimit
(test *testing.T)
internal/llmloop/compression_budget_test.go:453
Function
TestCompressionBudgetIgnoresNonShrinkingSummary
(test *testing.T)
internal/llmloop/compression_budget_test.go:244
Function
TestCompressionBudgetIncludesNewSummary
(test *testing.T)
internal/llmloop/compression_budget_test.go:75
Function
TestCompressionBudgetMainLoopContinues
(test *testing.T)
internal/llmloop/compression_budget_test.go:154
Function
TestCompressionBudgetNoRoom
(test *testing.T)
internal/llmloop/compression_budget_test.go:123
Function
TestCompressionBudgetOutputLimitWithoutGenerationHeadroom
(test *testing.T)
internal/llmloop/compression_budget_test.go:202
Function
TestCompressionBudgetPartition
(test *testing.T)
internal/llmloop/compression_budget_test.go:19
Function
TestCompressionBudgetPreservesUnchangedHistory
(test *testing.T)
internal/llmloop/compression_budget_test.go:49
Function
TestCompressionBudgetRejectionPreservesFinalSubmission
(t *testing.T)
internal/llmloop/request_budget_test.go:90
Function
TestCompressionBudgetRejectsOversizedSummary
(test *testing.T)
internal/llmloop/compression_budget_test.go:106
Function
TestCompressionBudgetRequiresFinishedVisibleSummary
(test *testing.T)
internal/llmloop/compression_budget_test.go:426
Function
TestCompressionBudgetRetryMessages
(test *testing.T)
internal/llmloop/compression_budget_test.go:356
Function
TestCompressionBudgetRetryThenToolResult
(test *testing.T)
internal/llmloop/compression_budget_test.go:383
Function
TestCompressionBudgetStrictBoundary
(test *testing.T)
internal/llmloop/compression_budget_test.go:145
Function
TestCompressionEnforcesVisibleReservation
(t *testing.T)
internal/llmloop/compression_budget_test.go:335
Function
TestCompressionExtraGenerationCannotExpandHistory
(t *testing.T)
internal/llmloop/compression_budget_test.go:316
Function
TestCompressionInlineReasoning
(t *testing.T)
internal/llmloop/compression_budget_test.go:293
Function
TestCompressionKeepsObservationReplay
(test *testing.T)
internal/behaviortask/compression_test.go:17
Function
TestCompressionLeavesRoomForReasoning
(t *testing.T)
internal/llmloop/compression_budget_test.go:261
Function
TestCompressionSummary
(t *testing.T)
internal/llmloop/compression_test.go:175
Function
TestCompression_CrossFileIsolation
(t *testing.T)
internal/llmloop/runner_test.go:514
Function
TestComputeLineDiff
(t *testing.T)
internal/suggestdiff/diff_test.go:10
Function
TestComputeLineDiff_ContextContent
(t *testing.T)
internal/suggestdiff/diff_test.go:174
Function
TestComputeLineDiff_FuzzyMatchPreservesRawChanges
(t *testing.T)
internal/suggestdiff/diff_test.go:110
Function
TestComputeLineDiff_FuzzyMatchPreservesRawChangesWithContext
(t *testing.T)
internal/suggestdiff/diff_test.go:144
Function
TestConcurrencyFlagUsageUsesSubtask
(t *testing.T)
cmd/opencodereview/flags_test.go:389
Function
TestConcurrentTransitions
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
Function
TestConfigRoundTripKeepsAWSSettings
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
Function
TestConfigRoundTripPreservesTimeoutSec
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
Function
TestConfigRoundTripPreservesUnknownFields
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:1687
Function
TestConfirmDeleteCustomModel_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
Function
TestConfirmDeleteCustomProviderModel_Guards
TestConfirmDeleteCustomProviderModel_Guards covers the not-user-added and nil-cfg early returns.
cmd/opencodereview/provider_tui_modeltui_test.go:193
Function
TestConfirmDeleteOfficialModel
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
Function
TestConfirmDeleteOfficialModelActiveClear
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
Function
TestConfirmDeleteOfficialModel_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
Function
TestConflictingTransitionErrorsAndKeepsFirst
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
Function
TestConstructorsInstallHeaderTimeoutClient
(t *testing.T)
internal/llm/retry_boundary_test.go:774
Function
TestConsumeStreamsCanCancelBlockedReaders
(t *testing.T)
acp/internal/orchestrator/runner_test.go:225
← previous
next →
3,701–3,800 of 7,390, ranked by callers