MCPcopy Create free account

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

Functions3,737 in github.com/alibaba/open-code-review

FunctionTestCodeSearchProvider_Execute_AllowsDoubleDotInFilename
(t *testing.T)
internal/tool/code_search_test.go:481
FunctionTestCodeSearchProvider_Execute_BlankSearchText
(t *testing.T)
internal/tool/code_search_test.go:410
FunctionTestCodeSearchProvider_Execute_CaseSensitive
(t *testing.T)
internal/tool/code_search_test.go:500
FunctionTestCodeSearchProvider_Execute_Found
(t *testing.T)
internal/tool/code_search_test.go:421
FunctionTestCodeSearchProvider_Execute_PerlRegexp
(t *testing.T)
internal/tool/code_search_test.go:516
FunctionTestCodeSearchProvider_Execute_RejectsTraversalPattern
(t *testing.T)
internal/tool/code_search_test.go:452
FunctionTestCodeSearchProvider_Execute_WithFilePatterns
(t *testing.T)
internal/tool/code_search_test.go:436
FunctionTestCodeSearchProvider_Tool
(t *testing.T)
internal/tool/code_search_test.go:403
FunctionTestCollectCustomProviders_Nil
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:407
FunctionTestCollectCustomProviders_NilConfig
--- collectCustomProviders tests ---
cmd/opencodereview/provider_tui_test.go:1091
FunctionTestCollectCustomProviders_NilMap
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:414
FunctionTestCollectCustomProviders_ReadsCustomProviders
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:1098
FunctionTestCollectCustomProviders_Sorted
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:421
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/llmloop/loop_execute_test.go:105
FunctionTestCollectPendingComments_NilPool
(t *testing.T)
internal/llmloop/runner_test.go:164
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
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
FunctionTestCommentWorkerPool_AwaitEmpty
(t *testing.T)
internal/llmloop/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/llmloop/pool_test.go:173
FunctionTestCommentWorkerPool_AwaitKeyUnknown
TestCommentWorkerPool_AwaitKeyUnknown verifies waiting on a key with no submissions returns immediately.
internal/llmloop/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/llmloop/pool_test.go:131
FunctionTestCommentWorkerPool_Concurrency
(t *testing.T)
internal/llmloop/pool_test.go:74
FunctionTestCommentWorkerPool_ErrorDoesNotBlock
(t *testing.T)
internal/llmloop/pool_test.go:55
FunctionTestCommentWorkerPool_PanicIsIsolated
(t *testing.T)
internal/llmloop/pool_test.go:107
FunctionTestCommentWorkerPool_SubmitAndAwait
(t *testing.T)
internal/llmloop/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:480
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:244
FunctionTestCommitDiffTreatsOptionLikeRefAsRevision
(t *testing.T)
internal/diff/git_test.go:268
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
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
FunctionTestCompletionTokenLimit
(t *testing.T)
internal/config/template/template_test.go:57
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
FunctionTestCompression_CrossFileIsolation
(t *testing.T)
internal/llmloop/runner_test.go:515
FunctionTestComputeLineDiff
(t *testing.T)
internal/suggestdiff/diff_test.go:10
FunctionTestComputeLineDiff_ContextContent
(t *testing.T)
internal/suggestdiff/diff_test.go:118
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:826
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:1332
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:60
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:350
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:103
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:314
FunctionTestContentLogging_Disabled
(t *testing.T)
internal/telemetry/provider_test.go:49
FunctionTestContentLogging_EnabledWithEnv
(t *testing.T)
internal/telemetry/provider_test.go:58
FunctionTestContentLogging_EnabledWithoutEnv
(t *testing.T)
internal/telemetry/provider_test.go:66
FunctionTestContentSecurityPolicyIsStrict
The CSP must stay strict: no 'unsafe-inline'/'unsafe-eval' relaxation, since the formerly-inline session script now lives in static/session.js.
internal/viewer/securityheaders_test.go:51
FunctionTestContentToText_Empty
(t *testing.T)
internal/mcp/client_test.go:181
FunctionTestContentToText_MultipleText
(t *testing.T)
internal/mcp/client_test.go:169
FunctionTestContentToText_SingleText
(t *testing.T)
internal/mcp/client_test.go:159
FunctionTestContentToText_UnsupportedType
(t *testing.T)
internal/mcp/client_test.go:193
FunctionTestContextWithTraceParentFromEnv_AbsentOrDisabled
(t *testing.T)
internal/telemetry/span_test.go:209
FunctionTestContextWithTraceParentFromEnv_Extracts
(t *testing.T)
internal/telemetry/span_test.go:183
FunctionTestContextWithTraceParentFromEnv_Malformed
(t *testing.T)
internal/telemetry/span_test.go:230
FunctionTestCopyLlmComments_DeepCopy
(t *testing.T)
internal/session/resume_test.go:441
FunctionTestCopyLlmComments_Empty
(t *testing.T)
internal/session/resume_test.go:435
FunctionTestCopyLlmComments_Nil
--- copyLlmComments ---
internal/session/resume_test.go:429
FunctionTestCopyMessages
(t *testing.T)
internal/llmloop/compression_test.go:180
FunctionTestCopyMessages
(t *testing.T)
internal/agent/util_test.go:150
FunctionTestCountLines
(t *testing.T)
internal/scan/provider_test.go:18
FunctionTestCountMessagesTokens
(t *testing.T)
internal/llmloop/compression_test.go:17
FunctionTestCountMessagesTokens
(t *testing.T)
internal/agent/util_test.go:171
FunctionTestCountMessagesTokens_Empty
(t *testing.T)
internal/llmloop/compression_test.go:28
FunctionTestCountReviewable
(t *testing.T)
internal/agent/agent_test.go:643
FunctionTestCountTokens
(t *testing.T)
internal/llm/client_test.go:1253
FunctionTestCountTokensForModel
(t *testing.T)
internal/llm/client_test.go:1276
FunctionTestCoverageSortedAndNonNilJSON
Coverage arrays are sorted by item_id and marshal as [] (never null).
internal/session/manifest_test.go:514
FunctionTestCpProtocolIndex
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:2776
FunctionTestCpProtocols_ContainsAllCanonicalNames
--- protocol normalization / openai-responses support ---
cmd/opencodereview/provider_tui_test.go:2757
FunctionTestCurrentProvider_OutOfBounds
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:460
FunctionTestCurrentProvider_WrongTab
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:469
FunctionTestCustomAPIKeyForSave
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:960
FunctionTestCustomListCount
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:293
FunctionTestCustomProviderActiveModel_DifferentProvider
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:26
FunctionTestCustomProviderActiveModel_MatchingProvider
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:36
FunctionTestCustomProviderActiveModel_NilCfg
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:17
FunctionTestCustomProviderEntry_Fallback
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:652
FunctionTestCustomProviderEntry_FromConfig
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:638
FunctionTestCustomProviderNameTaken
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:438
FunctionTestDefaultAuthHeader
(t *testing.T)
internal/llm/message_test.go:312
← previousnext →1,801–1,900 of 3,737, ranked by callers