MCPcopy Create free account

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

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

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
FunctionTestNewRemoteClient_HeaderExpandsUnsetVar
(t *testing.T)
internal/mcp/client_test.go:136
FunctionTestNewRequestMeta_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
FunctionTestNewResolver_BraceExpansionInProjectRule
(t *testing.T)
internal/config/rules/system_rules_test.go:1418
FunctionTestNewResolver_CustomOverridesProject
(t *testing.T)
internal/config/rules/system_rules_test.go:676
FunctionTestNewResolver_CustomRuleOverridesDefault
(t *testing.T)
internal/config/rules/system_rules_test.go:464
FunctionTestNewResolver_DefaultOnly
(t *testing.T)
internal/config/rules/system_rules_test.go:353
FunctionTestNewResolver_EmptyRuleMergeSystemRuleReturnsSystemOnly
(t *testing.T)
internal/config/rules/system_rules_test.go:521
FunctionTestNewResolver_EmptyRuleSkippedAndFallsBack
(t *testing.T)
internal/config/rules/system_rules_test.go:488
FunctionTestNewResolver_FileFilterFallsToProject
(t *testing.T)
internal/config/rules/system_rules_test.go:899
FunctionTestNewResolver_FileFilterMerged
(t *testing.T)
internal/config/rules/system_rules_test.go:817
FunctionTestNewResolver_FileFilterNilWhenEmpty
(t *testing.T)
internal/config/rules/system_rules_test.go:846
FunctionTestNewResolver_FileFilterPriorityOverride
(t *testing.T)
internal/config/rules/system_rules_test.go:856
FunctionTestNewResolver_MergeSystemRuleKeepsRulePriority
(t *testing.T)
internal/config/rules/system_rules_test.go:626
FunctionTestNewResolver_ProjectFileMalformed
(t *testing.T)
internal/config/rules/system_rules_test.go:720
FunctionTestNewResolver_ProjectFileMissing
(t *testing.T)
internal/config/rules/system_rules_test.go:366
FunctionTestNewResolver_ProjectRuleFallsBackToSystem
(t *testing.T)
internal/config/rules/system_rules_test.go:442
FunctionTestNewResolver_ProjectRuleFirstMatchWinsWithinFile
(t *testing.T)
internal/config/rules/system_rules_test.go:412
FunctionTestNewResolver_ProjectRuleHighestPriority
(t *testing.T)
internal/config/rules/system_rules_test.go:378
FunctionTestNewResolver_ProjectRuleMergesSystemRule
(t *testing.T)
internal/config/rules/system_rules_test.go:584
FunctionTestNewResolver_ProjectRuleReplacesSystemRuleByDefault
(t *testing.T)
internal/config/rules/system_rules_test.go:554
FunctionTestNewResumeLineage
(t *testing.T)
internal/session/resume_identity_test.go:293
FunctionTestNewSessionDoesNotNotifyBeforeResponse
(t *testing.T)
acp/internal/adapter/resources_test.go:212
FunctionTestNewSessionKey
(t *testing.T)
internal/llm/sessionkey_test.go:15
FunctionTestNewStdoutMetricExporter
(t *testing.T)
internal/telemetry/exporter_test.go:59
FunctionTestNewStdoutTraceExporter
(t *testing.T)
internal/telemetry/exporter_test.go:49
FunctionTestNewTextMessage
(t *testing.T)
internal/llm/message_test.go:12
FunctionTestNewToolCallMessage
(t *testing.T)
internal/llm/message_test.go:28
FunctionTestNewToolCallMessage_NilCalls
(t *testing.T)
internal/llm/message_test.go:61
FunctionTestNewToolResultMessage
(t *testing.T)
internal/llm/message_test.go:68
FunctionTestNilCollectorIsInert
Every method tolerates a nil collector. This is the design premise that the reporting path can never fail a review: a call site that has no collector
internal/llm/retry_report_test.go:339
FunctionTestNilCollectorMountsNoObserver
A nil collector must leave the request path exactly as it was: no middleware, no observation, and no change in behavior.
internal/llm/retry_observer_test.go:506
FunctionTestNonAmbientProviderStillRequiresAPIKey
TestNonAmbientProviderStillRequiresAPIKey makes sure open model lists do not relax credential requirements.
internal/llm/bedrock_test.go:362
FunctionTestNormalizeAuthHeader
TestNormalizeAuthHeader covers every branch of NormalizeAuthHeader, including the empty pass-through, the two canonical forms, the "bearer" alias, and
internal/llm/resolver_norm_test.go:13
FunctionTestNormalizeLine
(t *testing.T)
internal/diff/resolver_test.go:289
FunctionTestNormalizeModelList
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:1514
FunctionTestNormalizeProtocol
(t *testing.T)
internal/llm/protocol_test.go:11
FunctionTestNumberedCodeLines
TestNumberedCodeLines pins the numbering contract for the Existing Code gutter. The interesting half of the table is the cases where the reported rang
internal/viewer/server_startserver_test.go:275
FunctionTestOAuthNoRedirects
(t *testing.T)
internal/chatgptauth/io_test.go:122
FunctionTestOTLPSignalURL
(t *testing.T)
internal/telemetry/exporter_test.go:212
FunctionTestObservationFailuresPublishOnlyReference
(test *testing.T)
internal/behaviortask/runner_test.go:251
FunctionTestObserverClassifiesTerminalStatuses
Statuses the SDK does not retry produce exactly one attempt. 402 is the case that pins the coarse provider bucket: it is told apart by status_code rat
internal/llm/retry_observer_test.go:214
FunctionTestObserverConcurrentRequests
--- concurrency --- With --concurrency > 1 several files share one collector. Distinct metas must stay in distinct entries, and the frozen report must
internal/llm/retry_observer_test.go:524
FunctionTestObserverDropsRequestsWithoutIdentity
Requests without identity — scan and llm test — are dropped whole. The assertion needs a second, identified request in the same collector: with only u
internal/llm/retry_observer_test.go:392
FunctionTestObserverIgnoresOverriddenRetryCountHeader
X-Stainless-Retry-Count is an SDK implementation detail. Overriding it through ExtraHeaders makes the SDK stop maintaining it (it only refreshes the h
internal/llm/retry_observer_test.go:345
FunctionTestObserverMountedOnOpenAIClients
--- the other two mount points --- The observer is mounted on all three clients, so the OpenAI Chat Completions and Responses constructors get the sam
internal/llm/retry_observer_test.go:435
FunctionTestObserverRecordsExhaustedRetries
Retries exhaust at WithMaxRetries(5), so a permanently overloaded provider produces six attempts under one logical request, numbered without a gap.
internal/llm/retry_observer_test.go:169
FunctionTestObserverRecordsRateLimitedThenSuccess
--- attempt-level observation --- The canonical retry: one 429 with a server hint, then success. Everything the observer is responsible for is visible
internal/llm/retry_observer_test.go:86
FunctionTestObserverRecordsRetryDirectiveOnSuccess
Both SDKs consult x-should-retry before the status code and do not exclude 2xx, so a server can make them retry a successful response. The extra attem
internal/llm/retry_observer_test.go:262
FunctionTestObserverRecordsTransportFailure
A transport failure gives the observer no response at all: no status, no diagnostics, and a class derived from the Go error alone.
internal/llm/retry_observer_test.go:311
FunctionTestOf
(t *testing.T)
internal/tool/response_message_test.go:34
FunctionTestOfName
(t *testing.T)
internal/tool/definitions_test.go:11
FunctionTestOf_Empty
(t *testing.T)
internal/tool/response_message_test.go:47
FunctionTestOfficialAPIKeyEnvSetHint
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:2068
FunctionTestOfficialAPIKeyRequiredError
TestOfficialAPIKeyRequiredError covers every combination of the two hints the message can offer. Both are independently gated, so a provider carrying
cmd/opencodereview/provider_tui_cpinput_test.go:30
FunctionTestOfficialProviderActiveModel_DifferentProvider
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:62
FunctionTestOfficialProviderActiveModel_EmptyModel
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:92
FunctionTestOfficialProviderActiveModel_MatchingProvider
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:77
FunctionTestOfficialProviderActiveModel_NilCfg
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:54
← previousnext →4,701–4,800 of 7,390, ranked by callers