Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alibaba/open-code-review
/ functions
Functions
3,737 in github.com/alibaba/open-code-review
⨍
Functions
3,737
◇
Types & classes
339
Function
TestCodeSearchProvider_Execute_AllowsDoubleDotInFilename
(t *testing.T)
internal/tool/code_search_test.go:481
Function
TestCodeSearchProvider_Execute_BlankSearchText
(t *testing.T)
internal/tool/code_search_test.go:410
Function
TestCodeSearchProvider_Execute_CaseSensitive
(t *testing.T)
internal/tool/code_search_test.go:500
Function
TestCodeSearchProvider_Execute_Found
(t *testing.T)
internal/tool/code_search_test.go:421
Function
TestCodeSearchProvider_Execute_PerlRegexp
(t *testing.T)
internal/tool/code_search_test.go:516
Function
TestCodeSearchProvider_Execute_RejectsTraversalPattern
(t *testing.T)
internal/tool/code_search_test.go:452
Function
TestCodeSearchProvider_Execute_WithFilePatterns
(t *testing.T)
internal/tool/code_search_test.go:436
Function
TestCodeSearchProvider_Tool
(t *testing.T)
internal/tool/code_search_test.go:403
Function
TestCollectCustomProviders_Nil
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:407
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:414
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:421
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/llmloop/loop_execute_test.go:105
Function
TestCollectPendingComments_NilPool
(t *testing.T)
internal/llmloop/runner_test.go:164
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
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
TestCommentWorkerPool_AwaitEmpty
(t *testing.T)
internal/llmloop/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/llmloop/pool_test.go:173
Function
TestCommentWorkerPool_AwaitKeyUnknown
TestCommentWorkerPool_AwaitKeyUnknown verifies waiting on a key with no submissions returns immediately.
internal/llmloop/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/llmloop/pool_test.go:131
Function
TestCommentWorkerPool_Concurrency
(t *testing.T)
internal/llmloop/pool_test.go:74
Function
TestCommentWorkerPool_ErrorDoesNotBlock
(t *testing.T)
internal/llmloop/pool_test.go:55
Function
TestCommentWorkerPool_PanicIsIsolated
(t *testing.T)
internal/llmloop/pool_test.go:107
Function
TestCommentWorkerPool_SubmitAndAwait
(t *testing.T)
internal/llmloop/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:480
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:244
Function
TestCommitDiffTreatsOptionLikeRefAsRevision
(t *testing.T)
internal/diff/git_test.go:268
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
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
TestCompletionTokenLimit
(t *testing.T)
internal/config/template/template_test.go:57
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
TestCompression_CrossFileIsolation
(t *testing.T)
internal/llmloop/runner_test.go:515
Function
TestComputeLineDiff
(t *testing.T)
internal/suggestdiff/diff_test.go:10
Function
TestComputeLineDiff_ContextContent
(t *testing.T)
internal/suggestdiff/diff_test.go:118
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:826
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:1332
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:60
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:350
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:103
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:314
Function
TestContentLogging_Disabled
(t *testing.T)
internal/telemetry/provider_test.go:49
Function
TestContentLogging_EnabledWithEnv
(t *testing.T)
internal/telemetry/provider_test.go:58
Function
TestContentLogging_EnabledWithoutEnv
(t *testing.T)
internal/telemetry/provider_test.go:66
Function
TestContentSecurityPolicyIsStrict
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
Function
TestContentToText_Empty
(t *testing.T)
internal/mcp/client_test.go:181
Function
TestContentToText_MultipleText
(t *testing.T)
internal/mcp/client_test.go:169
Function
TestContentToText_SingleText
(t *testing.T)
internal/mcp/client_test.go:159
Function
TestContentToText_UnsupportedType
(t *testing.T)
internal/mcp/client_test.go:193
Function
TestContextWithTraceParentFromEnv_AbsentOrDisabled
(t *testing.T)
internal/telemetry/span_test.go:209
Function
TestContextWithTraceParentFromEnv_Extracts
(t *testing.T)
internal/telemetry/span_test.go:183
Function
TestContextWithTraceParentFromEnv_Malformed
(t *testing.T)
internal/telemetry/span_test.go:230
Function
TestCopyLlmComments_DeepCopy
(t *testing.T)
internal/session/resume_test.go:441
Function
TestCopyLlmComments_Empty
(t *testing.T)
internal/session/resume_test.go:435
Function
TestCopyLlmComments_Nil
--- copyLlmComments ---
internal/session/resume_test.go:429
Function
TestCopyMessages
(t *testing.T)
internal/llmloop/compression_test.go:180
Function
TestCopyMessages
(t *testing.T)
internal/agent/util_test.go:150
Function
TestCountLines
(t *testing.T)
internal/scan/provider_test.go:18
Function
TestCountMessagesTokens
(t *testing.T)
internal/llmloop/compression_test.go:17
Function
TestCountMessagesTokens
(t *testing.T)
internal/agent/util_test.go:171
Function
TestCountMessagesTokens_Empty
(t *testing.T)
internal/llmloop/compression_test.go:28
Function
TestCountReviewable
(t *testing.T)
internal/agent/agent_test.go:643
Function
TestCountTokens
(t *testing.T)
internal/llm/client_test.go:1253
Function
TestCountTokensForModel
(t *testing.T)
internal/llm/client_test.go:1276
Function
TestCoverageSortedAndNonNilJSON
Coverage arrays are sorted by item_id and marshal as [] (never null).
internal/session/manifest_test.go:514
Function
TestCpProtocolIndex
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:2776
Function
TestCpProtocols_ContainsAllCanonicalNames
--- protocol normalization / openai-responses support ---
cmd/opencodereview/provider_tui_test.go:2757
Function
TestCurrentProvider_OutOfBounds
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:460
Function
TestCurrentProvider_WrongTab
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:469
Function
TestCustomAPIKeyForSave
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:960
Function
TestCustomListCount
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:293
Function
TestCustomProviderActiveModel_DifferentProvider
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:26
Function
TestCustomProviderActiveModel_MatchingProvider
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:36
Function
TestCustomProviderActiveModel_NilCfg
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:17
Function
TestCustomProviderEntry_Fallback
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:652
Function
TestCustomProviderEntry_FromConfig
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:638
Function
TestCustomProviderNameTaken
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:438
Function
TestDefaultAuthHeader
(t *testing.T)
internal/llm/message_test.go:312
← previous
next →
1,801–1,900 of 3,737, ranked by callers