MCPcopy Create free account

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

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

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
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
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
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:182
FunctionTestContentToText_MultipleText
(t *testing.T)
internal/mcp/client_test.go:170
FunctionTestContentToText_SingleText
(t *testing.T)
internal/mcp/client_test.go:160
FunctionTestContentToText_UnsupportedType
(t *testing.T)
internal/mcp/client_test.go:194
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
FunctionTestConversationToolBindings
(test *testing.T)
internal/config/template/template_test.go:12
FunctionTestCopyAbortCancelsIdleSynchronousRead
(t *testing.T)
acp/cmd/ocr-acp/stdio_windows_test.go:170
FunctionTestCopyLlmComments_DeepCopy
(t *testing.T)
internal/session/resume_test.go:459
FunctionTestCopyLlmComments_Empty
(t *testing.T)
internal/session/resume_test.go:453
FunctionTestCopyLlmComments_Nil
--- copyLlmComments ---
internal/session/resume_test.go:447
FunctionTestCopyMessages
(t *testing.T)
internal/llmloop/compression_test.go:281
FunctionTestCopyMessages
(t *testing.T)
internal/agent/util_test.go:140
FunctionTestCopyRejectsThreadInitializationFailure
(t *testing.T)
acp/cmd/ocr-acp/stdio_windows_test.go:124
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:161
FunctionTestCountMessagesTokens_Empty
(t *testing.T)
internal/llmloop/compression_test.go:28
FunctionTestCountMessagesTokens_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
FunctionTestCountMessagesTokens_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
FunctionTestCountTokens
(t *testing.T)
internal/llm/client_test.go:1948
FunctionTestCountTokensForModel
(t *testing.T)
internal/llm/client_test.go:1971
FunctionTestCountTokensUsesEmbeddedBpeData
TestCountTokensUsesEmbeddedBpeData guards the root cause behind the offline failures of TestSelectFilesTooLarge_Boundary and TestSelectScanItems_Large
internal/llm/embedded_loader_test.go:90
FunctionTestCoverageSortedAndNonNilJSON
Coverage arrays are sorted by item_id and marshal as [] (never null).
internal/session/manifest_test.go:523
FunctionTestCpProtocolIndex
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:2800
FunctionTestCpProtocols_ContainsAllCanonicalNames
--- protocol normalization / openai-responses support ---
cmd/opencodereview/provider_tui_test.go:2764
FunctionTestCredentialsRefreshWindow
(t *testing.T)
internal/chatgptauth/refresh_recovery_test.go:253
FunctionTestCrossProcessSessionLock
(t *testing.T)
internal/chatgptauth/lifecycle_test.go:339
FunctionTestCtrlBreakUndeliverable
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
FunctionTestCurrentProvider_OutOfBounds
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:528
FunctionTestCurrentProvider_WrongTab
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:537
FunctionTestCustomAPIKeyForSave
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:960
FunctionTestCustomBedrockModelListDoesNotGateOverride
(t *testing.T)
internal/llm/bedrock_test.go:322
FunctionTestCustomDeadlineCauseIsNotExposed
(t *testing.T)
acp/internal/intent/llm/diagnostics_test.go:156
FunctionTestCustomFormEndsAtProtocolForBedrock
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
FunctionTestCustomListCount
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:361
FunctionTestCustomProviderActiveModel_DifferentProvider
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:28
FunctionTestCustomProviderActiveModel_MatchingProvider
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:38
FunctionTestCustomProviderActiveModel_NilCfg
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:19
FunctionTestCustomProviderCanSelectBedrock
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
FunctionTestCustomProviderEntry_Fallback
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:720
FunctionTestCustomProviderEntry_FromConfig
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:706
FunctionTestCustomProviderNameTaken
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:506
FunctionTestDecodeResultAcceptsContractSuccessStatuses
(t *testing.T)
acp/internal/orchestrator/internal_test.go:120
FunctionTestDecodeResultValidationAndStatuses
(t *testing.T)
acp/internal/orchestrator/internal_test.go:103
← previousnext →3,601–3,700 of 7,169, ranked by callers