Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alibaba/open-code-review
/ functions
Functions
7,169 in github.com/alibaba/open-code-review
⨍
Functions
7,169
◇
Types & classes
774
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
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
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
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:182
Function
TestContentToText_MultipleText
(t *testing.T)
internal/mcp/client_test.go:170
Function
TestContentToText_SingleText
(t *testing.T)
internal/mcp/client_test.go:160
Function
TestContentToText_UnsupportedType
(t *testing.T)
internal/mcp/client_test.go:194
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
TestConversationToolBindings
(test *testing.T)
internal/config/template/template_test.go:12
Function
TestCopyAbortCancelsIdleSynchronousRead
(t *testing.T)
acp/cmd/ocr-acp/stdio_windows_test.go:170
Function
TestCopyLlmComments_DeepCopy
(t *testing.T)
internal/session/resume_test.go:459
Function
TestCopyLlmComments_Empty
(t *testing.T)
internal/session/resume_test.go:453
Function
TestCopyLlmComments_Nil
--- copyLlmComments ---
internal/session/resume_test.go:447
Function
TestCopyMessages
(t *testing.T)
internal/llmloop/compression_test.go:281
Function
TestCopyMessages
(t *testing.T)
internal/agent/util_test.go:140
Function
TestCopyRejectsThreadInitializationFailure
(t *testing.T)
acp/cmd/ocr-acp/stdio_windows_test.go:124
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:161
Function
TestCountMessagesTokens_Empty
(t *testing.T)
internal/llmloop/compression_test.go:28
Function
TestCountMessagesTokens_IncludesNativePayload
TestCountMessagesTokens_IncludesNativePayload guards a gap found in review of the #805 fix: once an assistant turn's Native payload (thinking blocks,
internal/llmloop/compression_test.go:41
Function
TestCountMessagesTokens_IncludesToolCalls
TestCountMessagesTokens_IncludesToolCalls guards against under-counting assistant turns that invoke tools under protocols where tool calls live on Too
internal/llmloop/compression_test.go:61
Function
TestCountTokens
(t *testing.T)
internal/llm/client_test.go:1948
Function
TestCountTokensForModel
(t *testing.T)
internal/llm/client_test.go:1971
Function
TestCountTokensUsesEmbeddedBpeData
TestCountTokensUsesEmbeddedBpeData guards the root cause behind the offline failures of TestSelectFilesTooLarge_Boundary and TestSelectScanItems_Large
internal/llm/embedded_loader_test.go:90
Function
TestCoverageSortedAndNonNilJSON
Coverage arrays are sorted by item_id and marshal as [] (never null).
internal/session/manifest_test.go:523
Function
TestCpProtocolIndex
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:2800
Function
TestCpProtocols_ContainsAllCanonicalNames
--- protocol normalization / openai-responses support ---
cmd/opencodereview/provider_tui_test.go:2764
Function
TestCredentialsRefreshWindow
(t *testing.T)
internal/chatgptauth/refresh_recovery_test.go:253
Function
TestCrossProcessSessionLock
(t *testing.T)
internal/chatgptauth/lifecycle_test.go:339
Function
TestCtrlBreakUndeliverable
A console-less agent cannot deliver CTRL_BREAK at all. That is the expected outcome of the cooperative interrupt, not a cleanup failure, so it must be
acp/internal/orchestrator/process/winapi_windows_test.go:17
Function
TestCurrentProvider_OutOfBounds
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:528
Function
TestCurrentProvider_WrongTab
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:537
Function
TestCustomAPIKeyForSave
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:960
Function
TestCustomBedrockModelListDoesNotGateOverride
(t *testing.T)
internal/llm/bedrock_test.go:322
Function
TestCustomDeadlineCauseIsNotExposed
(t *testing.T)
acp/internal/intent/llm/diagnostics_test.go:156
Function
TestCustomFormEndsAtProtocolForBedrock
TestCustomFormEndsAtProtocolForBedrock covers the Custom form's ambient branch. Bedrock has no url, no api key and no auth header to collect, so walki
cmd/opencodereview/provider_tui_customform_test.go:202
Function
TestCustomListCount
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:361
Function
TestCustomProviderActiveModel_DifferentProvider
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:28
Function
TestCustomProviderActiveModel_MatchingProvider
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:38
Function
TestCustomProviderActiveModel_NilCfg
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:19
Function
TestCustomProviderCanSelectBedrock
TestCustomProviderCanSelectBedrock is the other half of that contract: where a provider entry exists there is somewhere to put aws_region and aws_prof
internal/llm/bedrock_test.go:250
Function
TestCustomProviderEntry_Fallback
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:720
Function
TestCustomProviderEntry_FromConfig
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:706
Function
TestCustomProviderNameTaken
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:506
Function
TestDecodeResultAcceptsContractSuccessStatuses
(t *testing.T)
acp/internal/orchestrator/internal_test.go:120
Function
TestDecodeResultValidationAndStatuses
(t *testing.T)
acp/internal/orchestrator/internal_test.go:103
← previous
next →
3,601–3,700 of 7,169, ranked by callers