MCPcopy Create free account

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

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

FunctionTestAgentGettersNilSafe
TestAgentGettersNilSafe covers the nil-safe guard paths of the small ResultProvider getters, which the happy-path budget/manifest tests do not exercis
internal/agent/getters_test.go:11
FunctionTestAgentLifecycleMethods
(t *testing.T)
acp/internal/adapter/server_test.go:61
FunctionTestAgentSessionAndPrompt
(t *testing.T)
acp/internal/adapter/server_test.go:41
FunctionTestAgent_Getters
(t *testing.T)
internal/scan/coverage_test.go:57
FunctionTestAgent_Getters
(t *testing.T)
internal/agent/coverage_test.go:23
FunctionTestAgent_RecordWarning
(t *testing.T)
internal/agent/coverage_test.go:92
FunctionTestAgent_TokenAccumulation
(t *testing.T)
internal/agent/agent_test.go:1309
FunctionTestAllowlistKeepsEveryTestedExtension
TestAllowlistKeepsEveryTestedExtension ties the explicit table in TestIsAllowedExt to supported_file_types.json. The table above can only test what it
internal/config/allowlist/allowed_ext_test.go:217
FunctionTestAmbientAuthFollowsTheEffectiveProtocol
TestAmbientAuthFollowsTheEffectiveProtocol covers the entry-level protocol override. An entry may override a preset's protocol, so reading ambient aut
internal/llm/bedrock_test.go:167
FunctionTestAnalysisCitationAtEmphasisStart
(test *testing.T)
cmd/opencodereview/analysis_markdown_test.go:114
FunctionTestAnalysisCommitComparisonLabel
(test *testing.T)
cmd/opencodereview/analysis_test.go:192
FunctionTestAnalysisFlags
(test *testing.T)
cmd/opencodereview/analysis_test.go:32
FunctionTestAnalysisMarkdownForDisplay
(test *testing.T)
cmd/opencodereview/analysis_markdown_test.go:76
FunctionTestAnalysisMarkdownOutputDestinations
(test *testing.T)
cmd/opencodereview/analysis_markdown_test.go:17
FunctionTestAnalysisPartialCloneDoesNotFetchMissingBlobs
(test *testing.T)
cmd/opencodereview/analysis_test.go:161
FunctionTestAnalysisPreparationDeadlineDoesNotBlockReview
(test *testing.T)
cmd/opencodereview/analysis_lifecycle_test.go:16
FunctionTestAnalysisPreparationFailureClosesInitializedResources
(test *testing.T)
cmd/opencodereview/analysis_lifecycle_test.go:47
FunctionTestAnalysisPreservesCommitReview
(test *testing.T)
cmd/opencodereview/analysis_test.go:486
FunctionTestAnalysisSharesReviewGitLimit
(test *testing.T)
cmd/opencodereview/analysis_test.go:96
FunctionTestAnalysisSkippedReviewStatus
(test *testing.T)
cmd/opencodereview/analysis_test.go:667
FunctionTestAnalysisTextAndStatus
(test *testing.T)
cmd/opencodereview/analysis_test.go:735
FunctionTestAnalysisTextBrief
(test *testing.T)
cmd/opencodereview/analysis_test.go:871
FunctionTestAnalysisTextEvidence
(test *testing.T)
cmd/opencodereview/analysis_test.go:919
FunctionTestAnalysisTextKeepsDeliveryWarnings
(test *testing.T)
cmd/opencodereview/analysis_test.go:851
FunctionTestAnalysisTextLimitPlacement
(test *testing.T)
cmd/opencodereview/analysis_test.go:967
FunctionTestAnalysisTextOmitsProcessWarnings
(test *testing.T)
cmd/opencodereview/analysis_test.go:798
FunctionTestAnalysisTextUsage
(test *testing.T)
cmd/opencodereview/analysis_test.go:940
FunctionTestAnalysisUsesResolvedReviewInput
(test *testing.T)
cmd/opencodereview/analysis_test.go:124
FunctionTestAnalysisWithoutReviewManifest
(test *testing.T)
cmd/opencodereview/analysis_test.go:786
FunctionTestAnthropicAuthorizationHeader
(t *testing.T)
acp/internal/intent/llm/client_test.go:261
FunctionTestAnthropicCallTool
(t *testing.T)
acp/internal/intent/llm/client_test.go:171
FunctionTestAnthropicClient_ContextSessionKeyOverridesFallback
(t *testing.T)
internal/llm/client_test.go:1904
FunctionTestAnthropicClient_DefaultsToAuthorizationHeader
(t *testing.T)
internal/llm/client_test.go:471
FunctionTestAnthropicClient_ExtraBodyStreamDropped
True and non-boolean stream values must not request SSE while Messages.New expects JSON. Other extra_body keys must still be forwarded.
internal/llm/client_test.go:1425
FunctionTestAnthropicClient_ExtraBodyStreamFalseForwarded
(t *testing.T)
internal/llm/client_test.go:1493
FunctionTestAnthropicClient_ExtraBodyThinkingDroppedWhenBudgetExceedsMaxTokens
TestAnthropicClient_ExtraBodyThinkingDroppedWhenBudgetExceedsMaxTokens guards the real failure this reproduces: a provider config's extra_body.thinkin
internal/llm/client_test.go:1603
FunctionTestAnthropicClient_ExtraBodyThinkingDroppedWithForcedToolChoice
TestAnthropicClient_ExtraBodyThinkingDroppedWithForcedToolChoice verifies that extra_body.thinking — the supported way to turn on extended thinking to
internal/llm/client_test.go:1542
FunctionTestAnthropicClient_ExtraHeadersSent
(t *testing.T)
internal/llm/client_test.go:513
FunctionTestAnthropicClient_NativeOnlySetWhenThinkingPresent
TestAnthropicClient_NativeOnlySetWhenThinkingPresent guards the hasThinking gate in mapAnthropicResponse: an ordinary text + tool_use turn (no thinkin
internal/llm/native_turn_test.go:300
FunctionTestAnthropicClient_NoExtraHeadersWhenEmpty
(t *testing.T)
internal/llm/client_test.go:1384
FunctionTestAnthropicClient_ReplaysThinkingBlockBeforeToolUse
(t *testing.T)
internal/llm/native_turn_test.go:111
FunctionTestAnthropicClient_RetryCodesTriggersRetry
(t *testing.T)
internal/llm/client_test.go:2200
FunctionTestAnthropicClient_SessionKeyExpandedInExtraHeadersAndBody
(t *testing.T)
internal/llm/client_test.go:1783
FunctionTestAnthropicClient_UsesConfiguredAuthorizationHeader
(t *testing.T)
internal/llm/client_test.go:425
FunctionTestAnthropicClient_UsesConfiguredXAPIKeyHeader
(t *testing.T)
internal/llm/client_test.go:379
FunctionTestAnthropicErrors
(t *testing.T)
acp/internal/intent/llm/client_test.go:278
FunctionTestAnthropicForcedToolDisablesThinking
(t *testing.T)
acp/internal/intent/llm/client_test.go:207
FunctionTestAnyToAttr
(t *testing.T)
internal/telemetry/span_test.go:19
FunctionTestApiKeyStepCanConfirm
apiKeyStepCanConfirm gates the final Enter of `ocr config provider`. It has to mirror the resolver's precedence (static api_key -> api_key_cmd -> env
cmd/opencodereview/provider_tui_funcs_test.go:1899
FunctionTestAppendTaskRecord
(t *testing.T)
internal/session/history_test.go:120
FunctionTestAppendTaskRecord_CopiesNativeAndReasoningContent
TestAppendTaskRecord_CopiesNativeAndReasoningContent guards copyMessages' own "deep copy" contract: an assistant history message carrying replay state
internal/session/history_test.go:166
FunctionTestAppendTaskRecord_CopiesToolCallExtraContent
TestAppendTaskRecord_CopiesToolCallExtraContent guards copyMessages' deep-copy contract for the one tool-call field that is a byte slice: a plain elem
internal/session/history_test.go:649
FunctionTestAppendTaskRecord_DefensiveCopy
(t *testing.T)
internal/session/history_test.go:147
FunctionTestAppendTaskRecord_PersistsToolCallExtraContent
TestAppendTaskRecord_PersistsToolCallExtraContent guards the request half of the #1357 contract: a tool call's opaque provider metadata must survive i
internal/session/history_test.go:559
FunctionTestAppendTaskRecord_PersistsToolCallsAndNativePayload
TestAppendTaskRecord_PersistsToolCallsAndNativePayload guards copyMessagesForJSON: the llm_request record's messages must be a self-contained, replaya
internal/session/history_test.go:382
FunctionTestApplyCLIExcludes_AppendsPatterns
(t *testing.T)
cmd/opencodereview/shared_test.go:57
FunctionTestApplyCLIExcludes_Empty
(t *testing.T)
cmd/opencodereview/shared_test.go:49
FunctionTestApplyCLIExcludes_NilFileFilter
(t *testing.T)
cmd/opencodereview/shared_test.go:65
FunctionTestApplyCreateCustomProvider
TestApplyCreateCustomProvider covers the create-custom-provider handler: nil config guard, empty config path guard, empty name, duplicate name, succes
cmd/opencodereview/provider_tui_persist_test.go:177
FunctionTestApplyCustomProviderConfigInvalidName
(t *testing.T)
cmd/opencodereview/provider_cmd_test.go:356
FunctionTestApplyCustomProviderConfigNormalizesAuthHeader
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:2735
FunctionTestApplyCustomProviderConfigPreservesModelOrder
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:2665
FunctionTestApplyCustomProviderConfig_EmptyKeyClearsSavedAPIKey
(t *testing.T)
cmd/opencodereview/provider_cmd_test.go:454
FunctionTestApplyCustomProviderConfig_MissingModel
(t *testing.T)
cmd/opencodereview/provider_cmd_test.go:371
FunctionTestApplyCustomProviderConfig_MissingProvider
(t *testing.T)
cmd/opencodereview/provider_cmd_test.go:349
FunctionTestApplyDedupGroups_AcceptsMarkdownFences
(t *testing.T)
internal/scan/dedup_test.go:84
FunctionTestApplyDedupGroups_KeepCanonicalContentWhenNoMergedContent
(t *testing.T)
internal/scan/dedup_test.go:48
FunctionTestApplyDedupGroups_MergeAndKeep
(t *testing.T)
internal/scan/dedup_test.go:17
FunctionTestApplyDedupGroups_RejectsBadShapes
(t *testing.T)
internal/scan/dedup_test.go:64
FunctionTestApplyEditCustomProviderSave_ClearsAPIKeyWhenEditedEmpty
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:810
FunctionTestApplyEditCustomProviderSave_Guards
TestApplyEditCustomProviderSave_Guards covers the two early-return guards: a nil config and an empty config path.
cmd/opencodereview/provider_tui_editsave_test.go:14
FunctionTestApplyEditCustomProviderSave_PreservesAPIKeyWhenMasked
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:848
FunctionTestApplyEditCustomProviderSave_RenameReassignsActiveProvider
TestApplyEditCustomProviderSave_RenameReassignsActiveProvider covers the name-change branch where the edited provider is also the active provider: the
cmd/opencodereview/provider_tui_editsave_test.go:40
FunctionTestApplyEditCustomProviderSave_SaveFailureRestoresBackup
TestApplyEditCustomProviderSave_SaveFailureRestoresBackup covers the save-failure path where the reload also fails (config path is a directory, so bot
cmd/opencodereview/provider_tui_editsave_test.go:78
FunctionTestApplyEffort
(t *testing.T)
internal/config/template/effort_test.go:41
FunctionTestApplyExtraHeaders
(t *testing.T)
acp/internal/intent/llm/client_test.go:370
FunctionTestApplyLanguage
(t *testing.T)
internal/config/template/template_test.go:303
FunctionTestApplyLanguage
(t *testing.T)
internal/config/testconnection/testconnection_test.go:59
FunctionTestApplyLanguage_DefaultEnglish
(t *testing.T)
internal/config/template/template_test.go:322
FunctionTestApplyLanguage_EmptyLang
(t *testing.T)
internal/config/testconnection/testconnection_test.go:82
FunctionTestApplyLanguage_ScanTemplate
(t *testing.T)
internal/config/template/template_test.go:118
FunctionTestApplyLanguage_ScanTemplate_AllOptionalTasks
(t *testing.T)
internal/config/template/template_test.go:429
FunctionTestApplyLanguage_ScanTemplate_NilOptionalTasks
(t *testing.T)
internal/config/template/template_test.go:462
FunctionTestApplyLanguage_SkipsNonSystemMessages
(t *testing.T)
internal/config/template/template_test.go:477
FunctionTestApplyManualConfigNormalizesAuthHeader
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:2709
FunctionTestApplyManualConfig_AcceptsLocalhostURL
A local endpoint is the common manual-configuration case for a self-hosted gateway, so the shared validator must not narrow what "valid" means.
cmd/opencodereview/provider_cmd_test.go:336
FunctionTestApplyManualConfig_DoubleWritesProtocolAndUseAnthropic
TestApplyManualConfig_DoubleWritesProtocolAndUseAnthropic verifies the dual write: cfg.Llm.Protocol always gets the canonical name, and UseAnthropic i
cmd/opencodereview/provider_tui_test.go:2902
FunctionTestApplyManualConfig_InvalidURL
(t *testing.T)
cmd/opencodereview/provider_cmd_test.go:285
FunctionTestApplyManualConfig_MissingModel
(t *testing.T)
cmd/opencodereview/provider_cmd_test.go:278
FunctionTestApplyManualConfig_MissingURL
(t *testing.T)
cmd/opencodereview/provider_cmd_test.go:271
FunctionTestApplyManualConfig_TrimsURL
(t *testing.T)
cmd/opencodereview/provider_cmd_test.go:313
FunctionTestApplyModelDeleteToEntry
(t *testing.T)
cmd/opencodereview/provider_tui_rollback_test.go:39
FunctionTestApplyOfficialProviderConfig_APIKeyCmdSatisfiesRequirement
A provider configured with only api_key_cmd must survive a trip through the TUI: picking a model returns an empty apiKey, which must not be mistaken f
cmd/opencodereview/provider_cmd_test.go:424
FunctionTestApplyOfficialProviderConfig_EmptyKeyClearsSavedAPIKey
(t *testing.T)
cmd/opencodereview/provider_cmd_test.go:385
FunctionTestApplyOfficialProviderConfig_IgnoresURLFromResult
(t *testing.T)
cmd/opencodereview/provider_cmd_test.go:621
FunctionTestApplyOfficialProviderConfig_MissingFields
(t *testing.T)
cmd/opencodereview/provider_cmd_test.go:378
FunctionTestApplyOfficialProviderConfig_PreservesURLWhenWizardOmitsURL
TestApplyOfficialProviderConfig_PreservesURLWhenWizardOmitsURL verifies that the URL configured through `ocr config set` survives a later provider wiz
cmd/opencodereview/provider_cmd_test.go:596
FunctionTestApplyOfficialProviderConfig_UsesSessionModelPick
(t *testing.T)
cmd/opencodereview/provider_cmd_test.go:514
FunctionTestApplyOfficialProviderConfig_Validation
TestApplyOfficialProviderConfig_Validation covers the pre-save validation branches (empty provider, empty model, missing API key) that reject the requ
cmd/opencodereview/provider_config_apply_test.go:15
FunctionTestApplyProviderConfig_TestsWrittenConfigPath
(t *testing.T)
cmd/opencodereview/provider_cmd_test.go:229
← previousnext →3,401–3,500 of 7,484, ranked by callers