Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alibaba/open-code-review
/ functions
Functions
7,484 in github.com/alibaba/open-code-review
⨍
Functions
7,484
◇
Types & classes
809
Function
TestAgentGettersNilSafe
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
Function
TestAgentLifecycleMethods
(t *testing.T)
acp/internal/adapter/server_test.go:61
Function
TestAgentSessionAndPrompt
(t *testing.T)
acp/internal/adapter/server_test.go:41
Function
TestAgent_Getters
(t *testing.T)
internal/scan/coverage_test.go:57
Function
TestAgent_Getters
(t *testing.T)
internal/agent/coverage_test.go:23
Function
TestAgent_RecordWarning
(t *testing.T)
internal/agent/coverage_test.go:92
Function
TestAgent_TokenAccumulation
(t *testing.T)
internal/agent/agent_test.go:1309
Function
TestAllowlistKeepsEveryTestedExtension
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
Function
TestAmbientAuthFollowsTheEffectiveProtocol
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
Function
TestAnalysisCitationAtEmphasisStart
(test *testing.T)
cmd/opencodereview/analysis_markdown_test.go:114
Function
TestAnalysisCommitComparisonLabel
(test *testing.T)
cmd/opencodereview/analysis_test.go:192
Function
TestAnalysisFlags
(test *testing.T)
cmd/opencodereview/analysis_test.go:32
Function
TestAnalysisMarkdownForDisplay
(test *testing.T)
cmd/opencodereview/analysis_markdown_test.go:76
Function
TestAnalysisMarkdownOutputDestinations
(test *testing.T)
cmd/opencodereview/analysis_markdown_test.go:17
Function
TestAnalysisPartialCloneDoesNotFetchMissingBlobs
(test *testing.T)
cmd/opencodereview/analysis_test.go:161
Function
TestAnalysisPreparationDeadlineDoesNotBlockReview
(test *testing.T)
cmd/opencodereview/analysis_lifecycle_test.go:16
Function
TestAnalysisPreparationFailureClosesInitializedResources
(test *testing.T)
cmd/opencodereview/analysis_lifecycle_test.go:47
Function
TestAnalysisPreservesCommitReview
(test *testing.T)
cmd/opencodereview/analysis_test.go:486
Function
TestAnalysisSharesReviewGitLimit
(test *testing.T)
cmd/opencodereview/analysis_test.go:96
Function
TestAnalysisSkippedReviewStatus
(test *testing.T)
cmd/opencodereview/analysis_test.go:667
Function
TestAnalysisTextAndStatus
(test *testing.T)
cmd/opencodereview/analysis_test.go:735
Function
TestAnalysisTextBrief
(test *testing.T)
cmd/opencodereview/analysis_test.go:871
Function
TestAnalysisTextEvidence
(test *testing.T)
cmd/opencodereview/analysis_test.go:919
Function
TestAnalysisTextKeepsDeliveryWarnings
(test *testing.T)
cmd/opencodereview/analysis_test.go:851
Function
TestAnalysisTextLimitPlacement
(test *testing.T)
cmd/opencodereview/analysis_test.go:967
Function
TestAnalysisTextOmitsProcessWarnings
(test *testing.T)
cmd/opencodereview/analysis_test.go:798
Function
TestAnalysisTextUsage
(test *testing.T)
cmd/opencodereview/analysis_test.go:940
Function
TestAnalysisUsesResolvedReviewInput
(test *testing.T)
cmd/opencodereview/analysis_test.go:124
Function
TestAnalysisWithoutReviewManifest
(test *testing.T)
cmd/opencodereview/analysis_test.go:786
Function
TestAnthropicAuthorizationHeader
(t *testing.T)
acp/internal/intent/llm/client_test.go:261
Function
TestAnthropicCallTool
(t *testing.T)
acp/internal/intent/llm/client_test.go:171
Function
TestAnthropicClient_ContextSessionKeyOverridesFallback
(t *testing.T)
internal/llm/client_test.go:1904
Function
TestAnthropicClient_DefaultsToAuthorizationHeader
(t *testing.T)
internal/llm/client_test.go:471
Function
TestAnthropicClient_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
Function
TestAnthropicClient_ExtraBodyStreamFalseForwarded
(t *testing.T)
internal/llm/client_test.go:1493
Function
TestAnthropicClient_ExtraBodyThinkingDroppedWhenBudgetExceedsMaxTokens
TestAnthropicClient_ExtraBodyThinkingDroppedWhenBudgetExceedsMaxTokens guards the real failure this reproduces: a provider config's extra_body.thinkin
internal/llm/client_test.go:1603
Function
TestAnthropicClient_ExtraBodyThinkingDroppedWithForcedToolChoice
TestAnthropicClient_ExtraBodyThinkingDroppedWithForcedToolChoice verifies that extra_body.thinking — the supported way to turn on extended thinking to
internal/llm/client_test.go:1542
Function
TestAnthropicClient_ExtraHeadersSent
(t *testing.T)
internal/llm/client_test.go:513
Function
TestAnthropicClient_NativeOnlySetWhenThinkingPresent
TestAnthropicClient_NativeOnlySetWhenThinkingPresent guards the hasThinking gate in mapAnthropicResponse: an ordinary text + tool_use turn (no thinkin
internal/llm/native_turn_test.go:300
Function
TestAnthropicClient_NoExtraHeadersWhenEmpty
(t *testing.T)
internal/llm/client_test.go:1384
Function
TestAnthropicClient_ReplaysThinkingBlockBeforeToolUse
(t *testing.T)
internal/llm/native_turn_test.go:111
Function
TestAnthropicClient_RetryCodesTriggersRetry
(t *testing.T)
internal/llm/client_test.go:2200
Function
TestAnthropicClient_SessionKeyExpandedInExtraHeadersAndBody
(t *testing.T)
internal/llm/client_test.go:1783
Function
TestAnthropicClient_UsesConfiguredAuthorizationHeader
(t *testing.T)
internal/llm/client_test.go:425
Function
TestAnthropicClient_UsesConfiguredXAPIKeyHeader
(t *testing.T)
internal/llm/client_test.go:379
Function
TestAnthropicErrors
(t *testing.T)
acp/internal/intent/llm/client_test.go:278
Function
TestAnthropicForcedToolDisablesThinking
(t *testing.T)
acp/internal/intent/llm/client_test.go:207
Function
TestAnyToAttr
(t *testing.T)
internal/telemetry/span_test.go:19
Function
TestApiKeyStepCanConfirm
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
Function
TestAppendTaskRecord
(t *testing.T)
internal/session/history_test.go:120
Function
TestAppendTaskRecord_CopiesNativeAndReasoningContent
TestAppendTaskRecord_CopiesNativeAndReasoningContent guards copyMessages' own "deep copy" contract: an assistant history message carrying replay state
internal/session/history_test.go:166
Function
TestAppendTaskRecord_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
Function
TestAppendTaskRecord_DefensiveCopy
(t *testing.T)
internal/session/history_test.go:147
Function
TestAppendTaskRecord_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
Function
TestAppendTaskRecord_PersistsToolCallsAndNativePayload
TestAppendTaskRecord_PersistsToolCallsAndNativePayload guards copyMessagesForJSON: the llm_request record's messages must be a self-contained, replaya
internal/session/history_test.go:382
Function
TestApplyCLIExcludes_AppendsPatterns
(t *testing.T)
cmd/opencodereview/shared_test.go:57
Function
TestApplyCLIExcludes_Empty
(t *testing.T)
cmd/opencodereview/shared_test.go:49
Function
TestApplyCLIExcludes_NilFileFilter
(t *testing.T)
cmd/opencodereview/shared_test.go:65
Function
TestApplyCreateCustomProvider
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
Function
TestApplyCustomProviderConfigInvalidName
(t *testing.T)
cmd/opencodereview/provider_cmd_test.go:356
Function
TestApplyCustomProviderConfigNormalizesAuthHeader
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:2735
Function
TestApplyCustomProviderConfigPreservesModelOrder
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:2665
Function
TestApplyCustomProviderConfig_EmptyKeyClearsSavedAPIKey
(t *testing.T)
cmd/opencodereview/provider_cmd_test.go:454
Function
TestApplyCustomProviderConfig_MissingModel
(t *testing.T)
cmd/opencodereview/provider_cmd_test.go:371
Function
TestApplyCustomProviderConfig_MissingProvider
(t *testing.T)
cmd/opencodereview/provider_cmd_test.go:349
Function
TestApplyDedupGroups_AcceptsMarkdownFences
(t *testing.T)
internal/scan/dedup_test.go:84
Function
TestApplyDedupGroups_KeepCanonicalContentWhenNoMergedContent
(t *testing.T)
internal/scan/dedup_test.go:48
Function
TestApplyDedupGroups_MergeAndKeep
(t *testing.T)
internal/scan/dedup_test.go:17
Function
TestApplyDedupGroups_RejectsBadShapes
(t *testing.T)
internal/scan/dedup_test.go:64
Function
TestApplyEditCustomProviderSave_ClearsAPIKeyWhenEditedEmpty
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:810
Function
TestApplyEditCustomProviderSave_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
Function
TestApplyEditCustomProviderSave_PreservesAPIKeyWhenMasked
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:848
Function
TestApplyEditCustomProviderSave_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
Function
TestApplyEditCustomProviderSave_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
Function
TestApplyEffort
(t *testing.T)
internal/config/template/effort_test.go:41
Function
TestApplyExtraHeaders
(t *testing.T)
acp/internal/intent/llm/client_test.go:370
Function
TestApplyLanguage
(t *testing.T)
internal/config/template/template_test.go:303
Function
TestApplyLanguage
(t *testing.T)
internal/config/testconnection/testconnection_test.go:59
Function
TestApplyLanguage_DefaultEnglish
(t *testing.T)
internal/config/template/template_test.go:322
Function
TestApplyLanguage_EmptyLang
(t *testing.T)
internal/config/testconnection/testconnection_test.go:82
Function
TestApplyLanguage_ScanTemplate
(t *testing.T)
internal/config/template/template_test.go:118
Function
TestApplyLanguage_ScanTemplate_AllOptionalTasks
(t *testing.T)
internal/config/template/template_test.go:429
Function
TestApplyLanguage_ScanTemplate_NilOptionalTasks
(t *testing.T)
internal/config/template/template_test.go:462
Function
TestApplyLanguage_SkipsNonSystemMessages
(t *testing.T)
internal/config/template/template_test.go:477
Function
TestApplyManualConfigNormalizesAuthHeader
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:2709
Function
TestApplyManualConfig_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
Function
TestApplyManualConfig_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
Function
TestApplyManualConfig_InvalidURL
(t *testing.T)
cmd/opencodereview/provider_cmd_test.go:285
Function
TestApplyManualConfig_MissingModel
(t *testing.T)
cmd/opencodereview/provider_cmd_test.go:278
Function
TestApplyManualConfig_MissingURL
(t *testing.T)
cmd/opencodereview/provider_cmd_test.go:271
Function
TestApplyManualConfig_TrimsURL
(t *testing.T)
cmd/opencodereview/provider_cmd_test.go:313
Function
TestApplyModelDeleteToEntry
(t *testing.T)
cmd/opencodereview/provider_tui_rollback_test.go:39
Function
TestApplyOfficialProviderConfig_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
Function
TestApplyOfficialProviderConfig_EmptyKeyClearsSavedAPIKey
(t *testing.T)
cmd/opencodereview/provider_cmd_test.go:385
Function
TestApplyOfficialProviderConfig_IgnoresURLFromResult
(t *testing.T)
cmd/opencodereview/provider_cmd_test.go:621
Function
TestApplyOfficialProviderConfig_MissingFields
(t *testing.T)
cmd/opencodereview/provider_cmd_test.go:378
Function
TestApplyOfficialProviderConfig_PreservesURLWhenWizardOmitsURL
TestApplyOfficialProviderConfig_PreservesURLWhenWizardOmitsURL verifies that the URL configured through `ocr config set` survives a later provider wiz
cmd/opencodereview/provider_cmd_test.go:596
Function
TestApplyOfficialProviderConfig_UsesSessionModelPick
(t *testing.T)
cmd/opencodereview/provider_cmd_test.go:514
Function
TestApplyOfficialProviderConfig_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
Function
TestApplyProviderConfig_TestsWrittenConfigPath
(t *testing.T)
cmd/opencodereview/provider_cmd_test.go:229
← previous
next →
3,401–3,500 of 7,484, ranked by callers