MCPcopy Create free account

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

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

FunctionTestMockSuccessReviewDecodesEveryField
(t *testing.T)
acp/internal/contract/mock_contract_test.go:86
FunctionTestModeWarning
(t *testing.T)
internal/viewer/compare_test.go:130
FunctionTestModelCount
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:158
FunctionTestModelListContains
(t *testing.T)
internal/llm/message_test.go:369
FunctionTestModelOverrideWarnsForKeyBasedProviders
(t *testing.T)
internal/llm/bedrock_test.go:343
FunctionTestModelProviderName_CustomTab
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:133
FunctionTestModelProviderName_CustomTab_NoSelection
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:148
FunctionTestModelProviderName_OfficialTab
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:121
FunctionTestModelReloadConfigAfterSaveFailure
(t *testing.T)
cmd/opencodereview/provider_tui_rollback_test.go:130
FunctionTestModelTUIUpdate_CancelAndDelete
TestModelTUIUpdate_CancelAndDelete covers esc/ctrl+c cancel and the 'd' key entering delete-confirm on a user-added model.
cmd/opencodereview/provider_tui_modeltui_test.go:74
FunctionTestModelTUIUpdate_CustomModelInput
TestModelTUIUpdate_CustomModelInput covers the customModel input sub-mode: esc exit, empty enter stays, duplicate enter sets formError, valid enter pe
cmd/opencodereview/provider_tui_modeltui_test.go:96
FunctionTestModelTUIUpdate_Navigation
TestModelTUIUpdate_Navigation covers window resize, up/down wrap-around, and enter on both a real model and the custom "add" item.
cmd/opencodereview/provider_tui_modeltui_test.go:36
FunctionTestModelTUI_AddCustomModelRejectsDuplicate
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1240
FunctionTestModelTUI_CustomProvider_AddCustomModelStaysOnList
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1193
FunctionTestModelTUI_CustomProvider_DeleteCancel
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1423
FunctionTestModelTUI_CustomProvider_DeleteClearsCustomInput
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1382
FunctionTestModelTUI_CustomProvider_DeleteModelViaDKey
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1403
FunctionTestModelTUI_CustomProvider_DeleteOnCustomModelInputIgnored
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1339
FunctionTestModelTUI_CustomProvider_ShowsDeleteHint
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1366
FunctionTestModelTUI_DeleteSetsSavedInSession
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1225
FunctionTestModelTUI_EscCancelWithoutChangesNoSavedInSession
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1213
FunctionTestModelTUI_IsCustomItem
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:776
FunctionTestModelTUI_ItemCount
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:790
FunctionTestModelTUI_Official_AddCustomModelStaysOnList
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1151
FunctionTestModelTUI_Official_DeleteActiveUserModelClearsCfg
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1472
FunctionTestModelTUI_Official_DeleteBuiltInModelIgnored
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1284
FunctionTestModelTUI_Official_DeleteCancel
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1440
FunctionTestModelTUI_Official_DeleteOnCustomModelInputIgnored
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1328
FunctionTestModelTUI_Official_DeleteUserAddedModel
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1256
FunctionTestModelTUI_Official_ListEnterConfirmsSelection
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1179
FunctionTestModelTUI_Official_RegistryModelNotDeletable
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1313
FunctionTestModelTUI_Official_UserAddedModelShowsDeleteHint
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1350
FunctionTestModelTUI_SelectedModel
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:801
FunctionTestModelTUI_SelectedModel_OutOfBounds
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:813
FunctionTestModelTUI_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:2240
FunctionTestModelTUI_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:2253
FunctionTestModelTUI_Update_EscCancels
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:857
FunctionTestModelTUI_Update_UpDown
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:826
FunctionTestModelTUI_Update_WindowSize
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:844
FunctionTestModelTUI_View
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1030
FunctionTestModelTUI_View_CustomModel
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1042
FunctionTestModelsAPIDiagnostics
(t *testing.T)
internal/chatgptauth/recovery_test.go:337
FunctionTestModelsCatalog
(t *testing.T)
internal/chatgptauth/lifecycle_test.go:244
FunctionTestMux_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:448
FunctionTestNativeTurn_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
FunctionTestNaturalClarify
(t *testing.T)
acp/internal/intent/natural_test.go:148
FunctionTestNaturalClarifyChainPreservesPartialSlots
(t *testing.T)
acp/internal/intent/natural_test.go:202
FunctionTestNaturalClarifyTypeSwitchDoesNotLeakReview
(t *testing.T)
acp/internal/intent/natural_test.go:230
FunctionTestNaturalClarifyWithoutPartialSlots
(t *testing.T)
acp/internal/intent/natural_test.go:166
FunctionTestNaturalCommitClarificationPreservesTypeAndQuestion
(t *testing.T)
acp/internal/intent/natural_test.go:323
FunctionTestNaturalFollowUpMergesPendingSlots
(t *testing.T)
acp/internal/intent/natural_test.go:181
FunctionTestNaturalForbiddenExtra
(t *testing.T)
acp/internal/intent/natural_test.go:415
FunctionTestNaturalIntents
(t *testing.T)
acp/internal/intent/natural_test.go:88
FunctionTestNaturalLLMFailures
(t *testing.T)
acp/internal/intent/natural_test.go:432
FunctionTestNaturalLanguageCatalog
(t *testing.T)
acp/internal/intent/nl_catalog_test.go:57
FunctionTestNaturalLatestCommitInstructionsAndValidation
(t *testing.T)
acp/internal/intent/natural_test.go:43
FunctionTestNaturalRefValidation
(t *testing.T)
acp/internal/intent/natural_test.go:387
FunctionTestNaturalReject
(t *testing.T)
acp/internal/intent/natural_test.go:348
FunctionTestNaturalRequestShape
(t *testing.T)
acp/internal/intent/natural_test.go:521
FunctionTestNaturalResponseLanguageContract
(t *testing.T)
acp/internal/intent/natural_test.go:15
FunctionTestNaturalReviewMissingSlots
(t *testing.T)
acp/internal/intent/natural_test.go:366
FunctionTestNaturalTimeout
(t *testing.T)
acp/internal/intent/natural_test.go:467
FunctionTestNaturalTimeoutDiagnostics
(t *testing.T)
acp/internal/intent/natural_test.go:484
FunctionTestNew
(t *testing.T)
internal/session/history_test.go:18
FunctionTestNewAgent_SetsSessionMode
(t *testing.T)
internal/scan/agent_test.go:371
FunctionTestNewAnthropicClient_URLNormalization
(t *testing.T)
internal/llm/client_test.go:67
FunctionTestNewClient
(t *testing.T)
acp/internal/intent/llm/client_test.go:67
FunctionTestNewClient_Integration
(t *testing.T)
internal/mcp/client_test.go:277
FunctionTestNewClient_Stdio
(t *testing.T)
internal/mcp/stdio_test.go:166
FunctionTestNewClient_Stdio_BadCommand
(t *testing.T)
internal/mcp/stdio_test.go:238
FunctionTestNewClient_Stdio_PaginatedTools
(t *testing.T)
internal/mcp/stdio_test.go:209
FunctionTestNewCommandReplacesPending
(t *testing.T)
acp/internal/intent/state_test.go:55
FunctionTestNewCommentWorkerPool
(t *testing.T)
internal/agent/coverage_test.go:112
FunctionTestNewCommentWorkerPool_Custom
(t *testing.T)
internal/reviewtask/pool_test.go:24
FunctionTestNewCommentWorkerPool_Default
(t *testing.T)
internal/reviewtask/pool_test.go:17
FunctionTestNewDiffMap_DefensiveCopy
(t *testing.T)
internal/tool/file_read_diff_test.go:12
FunctionTestNewJSONToolCalls_FailureByTool
(t *testing.T)
cmd/opencodereview/output_helpers_test.go:465
FunctionTestNewKeyCmd_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
FunctionTestNewLLMClient_DefaultTimeout
(t *testing.T)
internal/llm/resolver_test.go:2070
FunctionTestNewLLMClient_Dispatch
(t *testing.T)
internal/llm/client_test.go:2011
FunctionTestNewLLMClient_ExpandsSessionKeyInExtraBody
(t *testing.T)
internal/llm/client_test.go:1831
FunctionTestNewLLMClient_NoRawHolderMountsNothing
TestNewLLMClient_NoRawHolderMountsNothing asserts the default (switch off) path records nothing and behaves exactly as before.
internal/llm/raw_test.go:828
FunctionTestNewLLMClient_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
FunctionTestNewLLMClient_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
FunctionTestNewLLMClient_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
FunctionTestNewLLMClient_TimeoutForwarded
(t *testing.T)
internal/llm/resolver_test.go:2046
FunctionTestNewModelTUI
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:729
FunctionTestNewModelTUI_CustomModel
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:765
FunctionTestNewModelTUI_WithCurrentModel
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:750
FunctionTestNewMux_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
FunctionTestNewOpenAIClient_URLNormalization
(t *testing.T)
internal/llm/client_test.go:24
FunctionTestNewOpenAIResponsesClient_URLNormalization
(t *testing.T)
internal/llm/responses_client_test.go:19
FunctionTestNewProviderTUI_ManualProtocolFromConfig
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:2824
FunctionTestNewProvider_NormalizesPaths
(t *testing.T)
internal/scan/provider_test.go:65
FunctionTestNewQuietHandle_JSONHumanKeepsStdoutForDocument
TestNewQuietHandle_JSONHumanKeepsStdoutForDocument guards the invariant the stderr redirect relies on: progress written through stdout.Writer() must n
cmd/opencodereview/shared_test.go:113
FunctionTestNewQuietHandle_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
FunctionTestNewQuietHandle_Sarif
--- newQuietHandle: sarif silences stdout ---
cmd/opencodereview/sarif_test.go:515
FunctionTestNewRawFileWriter_CreatesFileUnderRawDir
(t *testing.T)
internal/session/raw_writer_test.go:25
FunctionTestNewRemoteClient_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
FunctionTestNewRemoteClient_HeaderExpandsToEmpty
(t *testing.T)
internal/mcp/client_test.go:93
← previousnext →4,701–4,800 of 7,484, ranked by callers