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
TestModelTUI_Official_DeleteUserAddedModel
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1256
Function
TestModelTUI_Official_ListEnterConfirmsSelection
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1179
Function
TestModelTUI_Official_RegistryModelNotDeletable
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1313
Function
TestModelTUI_Official_UserAddedModelShowsDeleteHint
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1350
Function
TestModelTUI_SelectedModel
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:801
Function
TestModelTUI_SelectedModel_OutOfBounds
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:813
Function
TestModelTUI_ShowsEffectiveBaseURL
TestModelTUI_ShowsEffectiveBaseURL verifies that the model picker displays the effective Base URL when a configured override is set on the provider.
cmd/opencodereview/provider_tui_funcs_test.go:2215
Function
TestModelTUI_ShowsPresetBaseURLWhenNoOverride
TestModelTUI_ShowsPresetBaseURLWhenNoOverride verifies that the model picker shows the preset Base URL when no override is configured.
cmd/opencodereview/provider_tui_funcs_test.go:2228
Function
TestModelTUI_Update_EscCancels
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:857
Function
TestModelTUI_Update_UpDown
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:826
Function
TestModelTUI_Update_WindowSize
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:844
Function
TestModelTUI_View
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1030
Function
TestModelTUI_View_CustomModel
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1042
Function
TestModelsAPIDiagnostics
(t *testing.T)
internal/chatgptauth/recovery_test.go:337
Function
TestModelsCatalog
(t *testing.T)
internal/chatgptauth/lifecycle_test.go:244
Function
TestMux_HasNoWriteRoutes
The viewer is read-only: no route may accept a write. The mux registers its document routes with GET-only patterns, so any state-changing method is an
internal/viewer/handler_test.go:332
Function
TestNativeTurn_CrossProviderFallback
TestNativeTurn_CrossProviderFallback proves that a Native payload built by one adapter safely falls back to ordinary Content/ToolCalls reconstruction
internal/llm/native_turn_test.go:225
Function
TestNaturalClarify
(t *testing.T)
acp/internal/intent/natural_test.go:148
Function
TestNaturalClarifyChainPreservesPartialSlots
(t *testing.T)
acp/internal/intent/natural_test.go:202
Function
TestNaturalClarifyTypeSwitchDoesNotLeakReview
(t *testing.T)
acp/internal/intent/natural_test.go:230
Function
TestNaturalClarifyWithoutPartialSlots
(t *testing.T)
acp/internal/intent/natural_test.go:166
Function
TestNaturalCommitClarificationPreservesTypeAndQuestion
(t *testing.T)
acp/internal/intent/natural_test.go:323
Function
TestNaturalFollowUpMergesPendingSlots
(t *testing.T)
acp/internal/intent/natural_test.go:181
Function
TestNaturalForbiddenExtra
(t *testing.T)
acp/internal/intent/natural_test.go:415
Function
TestNaturalIntents
(t *testing.T)
acp/internal/intent/natural_test.go:88
Function
TestNaturalLLMFailures
(t *testing.T)
acp/internal/intent/natural_test.go:432
Function
TestNaturalLanguageCatalog
(t *testing.T)
acp/internal/intent/nl_catalog_test.go:57
Function
TestNaturalLatestCommitInstructionsAndValidation
(t *testing.T)
acp/internal/intent/natural_test.go:43
Function
TestNaturalRefValidation
(t *testing.T)
acp/internal/intent/natural_test.go:387
Function
TestNaturalReject
(t *testing.T)
acp/internal/intent/natural_test.go:348
Function
TestNaturalRequestShape
(t *testing.T)
acp/internal/intent/natural_test.go:521
Function
TestNaturalResponseLanguageContract
(t *testing.T)
acp/internal/intent/natural_test.go:15
Function
TestNaturalReviewMissingSlots
(t *testing.T)
acp/internal/intent/natural_test.go:366
Function
TestNaturalTimeout
(t *testing.T)
acp/internal/intent/natural_test.go:467
Function
TestNaturalTimeoutDiagnostics
(t *testing.T)
acp/internal/intent/natural_test.go:484
Function
TestNew
(t *testing.T)
internal/session/history_test.go:18
Function
TestNewAgent_SetsSessionMode
(t *testing.T)
internal/scan/agent_test.go:371
Function
TestNewAnthropicClient_URLNormalization
(t *testing.T)
internal/llm/client_test.go:67
Function
TestNewClient
(t *testing.T)
acp/internal/intent/llm/client_test.go:67
Function
TestNewClient_Integration
(t *testing.T)
internal/mcp/client_test.go:277
Function
TestNewClient_Stdio
(t *testing.T)
internal/mcp/stdio_test.go:166
Function
TestNewClient_Stdio_BadCommand
(t *testing.T)
internal/mcp/stdio_test.go:238
Function
TestNewClient_Stdio_PaginatedTools
(t *testing.T)
internal/mcp/stdio_test.go:209
Function
TestNewCommandReplacesPending
(t *testing.T)
acp/internal/intent/state_test.go:55
Function
TestNewCommentWorkerPool
(t *testing.T)
internal/agent/coverage_test.go:112
Function
TestNewCommentWorkerPool_Custom
(t *testing.T)
internal/reviewtask/pool_test.go:24
Function
TestNewCommentWorkerPool_Default
(t *testing.T)
internal/reviewtask/pool_test.go:17
Function
TestNewDiffMap_DefensiveCopy
(t *testing.T)
internal/tool/file_read_diff_test.go:12
Function
TestNewJSONToolCalls_FailureByTool
(t *testing.T)
cmd/opencodereview/output_helpers_test.go:465
Function
TestNewKeyCmd_CmdLine
TestNewKeyCmd_CmdLine locks in the two decisions in newKeyCmd that no runtime test can observe: the command reaches cmd.exe through SysProcAttr.CmdLin
internal/llm/keycmd_windows_test.go:21
Function
TestNewLLMClient_DefaultTimeout
(t *testing.T)
internal/llm/resolver_test.go:2070
Function
TestNewLLMClient_Dispatch
(t *testing.T)
internal/llm/client_test.go:2011
Function
TestNewLLMClient_ExpandsSessionKeyInExtraBody
(t *testing.T)
internal/llm/client_test.go:1831
Function
TestNewLLMClient_NoRawHolderMountsNothing
TestNewLLMClient_NoRawHolderMountsNothing asserts the default (switch off) path records nothing and behaves exactly as before.
internal/llm/raw_test.go:828
Function
TestNewLLMClient_OpenAIAliasDispatchesToOpenAIClient
TestNewLLMClient_OpenAIAliasDispatchesToOpenAIClient verifies that the "openai" alias, once normalized by the resolver, lands on the OpenAI Chat Compl
internal/llm/client_test.go:2046
Function
TestNewLLMClient_RawEndToEnd
TestNewLLMClient_RawEndToEnd drives a real OpenAI client built through NewLLMClient against a fake endpoint and asserts one raw record lands in the bo
internal/llm/raw_test.go:689
Function
TestNewLLMClient_RawRecordsEveryRetryAttempt
TestNewLLMClient_RawRecordsEveryRetryAttempt asserts the middleware sits inside the SDK retry loop: a retried request yields one record per real HTTP
internal/llm/raw_test.go:761
Function
TestNewLLMClient_TimeoutForwarded
(t *testing.T)
internal/llm/resolver_test.go:2046
Function
TestNewModelTUI
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:729
Function
TestNewModelTUI_CustomModel
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:765
Function
TestNewModelTUI_WithCurrentModel
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:750
Function
TestNewMux_RouteDispatch
TestNewMux_RouteDispatch exercises the real ServeMux, not the handlers directly: "compare" is a literal segment competing with the {sessionID} wildcar
internal/viewer/compare_test.go:432
Function
TestNewOpenAIClient_URLNormalization
(t *testing.T)
internal/llm/client_test.go:24
Function
TestNewOpenAIResponsesClient_URLNormalization
(t *testing.T)
internal/llm/responses_client_test.go:19
Function
TestNewProviderTUI_ManualProtocolFromConfig
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:2824
Function
TestNewProvider_NormalizesPaths
(t *testing.T)
internal/scan/provider_test.go:65
Function
TestNewQuietHandle_JSONHumanKeepsStdoutForDocument
TestNewQuietHandle_JSONHumanKeepsStdoutForDocument guards the invariant the stderr redirect relies on: progress written through stdout.Writer() must n
cmd/opencodereview/shared_test.go:113
Function
TestNewQuietHandle_Routing
TestNewQuietHandle_Routing pins where [ocr] progress lines go for each (format, audience) pair. The machine-readable + human rows are the fix for #928
cmd/opencodereview/shared_test.go:80
Function
TestNewQuietHandle_Sarif
--- newQuietHandle: sarif silences stdout ---
cmd/opencodereview/sarif_test.go:515
Function
TestNewRawFileWriter_CreatesFileUnderRawDir
(t *testing.T)
internal/session/raw_writer_test.go:25
Function
TestNewRemoteClient_ConnectFailure
TestNewRemoteClient_ConnectFailure exercises the success path of header expansion (non-empty value) plus HTTP client / transport construction, then th
internal/mcp/client_test.go:117
Function
TestNewRemoteClient_HeaderExpandsToEmpty
(t *testing.T)
internal/mcp/client_test.go:93
Function
TestNewRemoteClient_HeaderExpandsUnsetVar
(t *testing.T)
internal/mcp/client_test.go:136
Function
TestNewRequestMeta_IsSingleSourceOfProviderAndModel
TestNewRequestMeta_IsSingleSourceOfProviderAndModel guards the reason the helper exists: five request types read provider and model through it, so a c
internal/agent/retry_identity_test.go:173
Function
TestNewResolver_BraceExpansionInProjectRule
(t *testing.T)
internal/config/rules/system_rules_test.go:1323
Function
TestNewResolver_CustomOverridesProject
(t *testing.T)
internal/config/rules/system_rules_test.go:662
Function
TestNewResolver_CustomRuleOverridesDefault
(t *testing.T)
internal/config/rules/system_rules_test.go:450
Function
TestNewResolver_DefaultOnly
(t *testing.T)
internal/config/rules/system_rules_test.go:339
Function
TestNewResolver_EmptyRuleMergeSystemRuleReturnsSystemOnly
(t *testing.T)
internal/config/rules/system_rules_test.go:507
Function
TestNewResolver_EmptyRuleSkippedAndFallsBack
(t *testing.T)
internal/config/rules/system_rules_test.go:474
Function
TestNewResolver_FileFilterFallsToProject
(t *testing.T)
internal/config/rules/system_rules_test.go:885
Function
TestNewResolver_FileFilterMerged
(t *testing.T)
internal/config/rules/system_rules_test.go:803
Function
TestNewResolver_FileFilterNilWhenEmpty
(t *testing.T)
internal/config/rules/system_rules_test.go:832
Function
TestNewResolver_FileFilterPriorityOverride
(t *testing.T)
internal/config/rules/system_rules_test.go:842
Function
TestNewResolver_MergeSystemRuleKeepsRulePriority
(t *testing.T)
internal/config/rules/system_rules_test.go:612
Function
TestNewResolver_ProjectFileMalformed
(t *testing.T)
internal/config/rules/system_rules_test.go:706
Function
TestNewResolver_ProjectFileMissing
(t *testing.T)
internal/config/rules/system_rules_test.go:352
Function
TestNewResolver_ProjectRuleFallsBackToSystem
(t *testing.T)
internal/config/rules/system_rules_test.go:428
Function
TestNewResolver_ProjectRuleFirstMatchWinsWithinFile
(t *testing.T)
internal/config/rules/system_rules_test.go:398
Function
TestNewResolver_ProjectRuleHighestPriority
(t *testing.T)
internal/config/rules/system_rules_test.go:364
Function
TestNewResolver_ProjectRuleMergesSystemRule
(t *testing.T)
internal/config/rules/system_rules_test.go:570
Function
TestNewResolver_ProjectRuleReplacesSystemRuleByDefault
(t *testing.T)
internal/config/rules/system_rules_test.go:540
Function
TestNewResumeLineage
(t *testing.T)
internal/session/resume_identity_test.go:293
Function
TestNewSessionDoesNotNotifyBeforeResponse
(t *testing.T)
acp/internal/adapter/resources_test.go:212
Function
TestNewSessionKey
(t *testing.T)
internal/llm/sessionkey_test.go:15
Function
TestNewStdoutMetricExporter
(t *testing.T)
internal/telemetry/exporter_test.go:59
Function
TestNewStdoutTraceExporter
(t *testing.T)
internal/telemetry/exporter_test.go:49
Function
TestNewTextMessage
(t *testing.T)
internal/llm/message_test.go:12
Function
TestNewToolCallMessage
(t *testing.T)
internal/llm/message_test.go:28
Function
TestNewToolCallMessage_NilCalls
(t *testing.T)
internal/llm/message_test.go:61
← previous
next →
4,501–4,600 of 7,169, ranked by callers