MCPcopy Create free account

hub / github.com/QuantumNous/new-api / functions

Functions15,409 in github.com/QuantumNous/new-api

FunctionTestSharedTaskBillingExpressionSelectionAndFrozenSettlement
(t *testing.T)
relay/relay_task_test.go:416
FunctionTestSharedType61IdentityFilterContainsAllCandidateKeys
(t *testing.T)
service/channel_select_test.go:168
FunctionTestShouldAuditParamPathUsesFieldBoundaryPrefixMatching
(t *testing.T)
relay/common/override_test.go:2651
FunctionTestShouldDisableByStatusCode
(t *testing.T)
setting/operation_setting/status_code_ranges_test.go:38
FunctionTestShouldPreserveThinkingSuffixExactAndRegex
(t *testing.T)
setting/model_setting/global_test.go:12
FunctionTestShouldRetryByStatusCode
(t *testing.T)
setting/operation_setting/status_code_ranges_test.go:54
FunctionTestShouldRetryByStatusCode_DefaultMatchesLegacyBehavior
(t *testing.T)
setting/operation_setting/status_code_ranges_test.go:71
FunctionTestShouldRetryHonorsPinRetryMode
(t *testing.T)
controller/channel_pin_retry_test.go:29
FunctionTestShouldRetryRelayErrorHonorsChannelPinOnChannelError
(t *testing.T)
service/relay_error_test.go:27
FunctionTestShouldRetryTaskRelayHonorsPinRetryMode
(t *testing.T)
controller/channel_pin_retry_test.go:54
FunctionTestShouldSendUpstreamModelUpdateNotification
(t *testing.T)
controller/channel_upstream_update_test.go:577
FunctionTestShouldSkipClaudeMessageDeltaUsagePatch
(t *testing.T)
relay/channel/claude/message_delta_usage_patch_test.go:48
FunctionTestShouldSkipRetryAfterChannelAffinityFailure
(t *testing.T)
service/channel_affinity_template_test.go:125
FunctionTestSignRequest
(t *testing.T)
router/provider_plugin_relay_test.go:770
FunctionTestSignRequestResultRules
(t *testing.T)
pkg/jsplugin/provider_test.go:498
FunctionTestSimpleExpr_NoTier
--------------------------------------------------------------------------- Simple flat-rate (no tier() call) ----------------------------------------
pkg/billingexpr/billingexpr_test.go:208
FunctionTestSmokeTestExprRejectsTaskUsageWithoutSchema
(t *testing.T)
setting/billing_setting/tiered_billing_test.go:123
FunctionTestSmokeTestTaskExprCapsOversizedEnumProductsAtLastCombination
(t *testing.T)
setting/billing_setting/tiered_billing_test.go:108
FunctionTestSmokeTestTaskExprValidatesDeclaredUsageVectors
(t *testing.T)
setting/billing_setting/tiered_billing_test.go:15
FunctionTestSnapshotEqual_DifferentData
(t *testing.T)
model/task_cas_test.go:169
FunctionTestSnapshotEqual_DifferentProgress
(t *testing.T)
model/task_cas_test.go:163
FunctionTestSnapshotEqual_DifferentStatus
(t *testing.T)
model/task_cas_test.go:157
FunctionTestSnapshotEqual_NilVsEmpty
(t *testing.T)
model/task_cas_test.go:175
FunctionTestSnapshotEqual_PluginStateAndPollFailures
(t *testing.T)
model/task_cas_test.go:182
FunctionTestSnapshotEqual_Same
--------------------------------------------------------------------------- Snapshot / Equal — pure logic tests (no DB) ------------------------------
model/task_cas_test.go:144
FunctionTestSnapshot_Roundtrip
(t *testing.T)
model/task_cas_test.go:205
FunctionTestSocketCapture
The WebSocket capture keeps whole events only.
relay/requestplugin/socket_test.go:475
FunctionTestSoraResponsesProtocol
(t *testing.T)
plugins/sora_responses_test.go:5
FunctionTestStageContextCarriesUserAndToken
(t *testing.T)
relay/requestplugin/requestplugin_test.go:1598
FunctionTestStageFetchTargets
Ingress may POST to the hosts of the instance's url config values and the plugin's allowedHosts only, and gets a redirect as it is.
relay/requestplugin/requestplugin_test.go:724
FunctionTestStageGuardsAndFailures
(t *testing.T)
relay/requestplugin/requestplugin_test.go:191
FunctionTestStaleActiveSessionCacheFillCannotRestartWindowAfterDenyExpires
(t *testing.T)
model/user_session_test.go:161
FunctionTestStatedLangLoadsTheUserOnlyWithoutLoadedSettings
TokenAuth puts the user's settings into the request. A user who saved no language must not be loaded again, which would cost a cache or database read
i18n/i18n_test.go:53
FunctionTestStaticKeysKeepTheirBehavior
(t *testing.T)
relay/channel/task/jsplugin/credential_test.go:408
FunctionTestStatus
(c *gin.Context)
controller/misc.go:25
FunctionTestStatusCell
({ result }: { result?: TestResult })
web/src/features/channels/components/dialogs/channel-test-dialog.tsx:1196
FunctionTestStreamKeepAliveCancellation
(t *testing.T)
controller/relay_stream_test.go:304
FunctionTestStreamKeepAlivePreservesFastHTTPFailures
(t *testing.T)
controller/relay_stream_test.go:187
FunctionTestStreamOutcomeClassification
(t *testing.T)
pkg/perf_metrics/metrics_test.go:54
FunctionTestStreamResponseConverterFacades
(t *testing.T)
service/convert_test.go:41
FunctionTestStreamResponseConverterFacadesAcceptTypedNilRelayInfo
(t *testing.T)
service/convert_test.go:88
FunctionTestStreamResponseGeminiChat2OpenAIAttachesUsageMetadata
(t *testing.T)
relay/channel/gemini/relay_gemini_usage_test.go:22
FunctionTestStreamResponseOpenAI2ClaudeClosesTextThinkingAndToolBlocks
(t *testing.T)
relaykit/relayconvert/internal/oai_chat/to_claude_messages_resp_test.go:131
FunctionTestStreamResponseOpenAI2ClaudeFirstFrameUsesUpstreamUsageWhenPresent
(t *testing.T)
relaykit/relayconvert/internal/oai_chat/to_claude_messages_resp_test.go:232
FunctionTestStreamResponseOpenAI2ClaudeGeminiBillingUsageOnStartAndDelta
(t *testing.T)
relaykit/relayconvert/internal/oai_chat/to_claude_messages_resp_test.go:346
FunctionTestStreamResponseOpenAI2ClaudeMessageDeltaCorrectsEstimatedFirstFrame
(t *testing.T)
relaykit/relayconvert/internal/oai_chat/to_claude_messages_resp_test.go:254
FunctionTestStreamResponseOpenAI2ClaudeMessageDeltaDoesNotZeroFirstFrameCache
(t *testing.T)
relaykit/relayconvert/internal/oai_chat/to_claude_messages_resp_test.go:295
FunctionTestStreamResponseOpenAI2GeminiMapsToolCallFinishReasonAndUsage
(t *testing.T)
relaykit/relayconvert/internal/oai_chat/to_gemini_chat_resp_test.go:66
FunctionTestStreamScannerHandler_1000Chunks
(t *testing.T)
relay/helper/stream_scanner_test.go:177
FunctionTestStreamScannerHandler_ClientCancelAbortsUpstreamAndReturns
TestStreamScannerHandler_ClientCancelAbortsUpstreamAndReturns pins the disconnect contract: when the client goes away, the handler must return promptl
relay/helper/stream_scanner_test.go:315
FunctionTestStreamScannerHandler_DataWithExtraSpaces
(t *testing.T)
relay/helper/stream_scanner_test.go:296
FunctionTestStreamScannerHandler_DoneStopsScanner
(t *testing.T)
relay/helper/stream_scanner_test.go:216
FunctionTestStreamScannerHandler_EmptyBody
(t *testing.T)
relay/helper/stream_scanner_test.go:164
FunctionTestStreamScannerHandler_NilInputs
---------- Basic correctness ----------
relay/helper/stream_scanner_test.go:135
FunctionTestStreamScannerHandler_OrderPreserved
(t *testing.T)
relay/helper/stream_scanner_test.go:193
FunctionTestStreamScannerHandler_PingDisabledByRelayInfo
(t *testing.T)
relay/helper/stream_scanner_test.go:435
FunctionTestStreamScannerHandler_PingSentDuringSlowUpstream
---------- Ping tests ----------
relay/helper/stream_scanner_test.go:384
FunctionTestStreamScannerHandler_RequestKeepAliveHandoff
(t *testing.T)
relay/helper/stream_scanner_test.go:36
FunctionTestStreamScannerHandler_SkipsNonDataLines
(t *testing.T)
relay/helper/stream_scanner_test.go:272
FunctionTestStreamScannerHandler_StopStopsStream
(t *testing.T)
relay/helper/stream_scanner_test.go:251
FunctionTestStreamScannerHandler_StreamStatus_DoneReason
---------- StreamStatus integration ----------
relay/helper/stream_scanner_test.go:480
FunctionTestStreamScannerHandler_StreamStatus_EOFWithoutDone
(t *testing.T)
relay/helper/stream_scanner_test.go:495
FunctionTestStreamScannerHandler_StreamStatus_ErrorThenStop
(t *testing.T)
relay/helper/stream_scanner_test.go:619
FunctionTestStreamScannerHandler_StreamStatus_HandlerDone
(t *testing.T)
relay/helper/stream_scanner_test.go:530
FunctionTestStreamScannerHandler_StreamStatus_HandlerStop
(t *testing.T)
relay/helper/stream_scanner_test.go:511
FunctionTestStreamScannerHandler_StreamStatus_InitializedIfNil
(t *testing.T)
relay/helper/stream_scanner_test.go:643
FunctionTestStreamScannerHandler_StreamStatus_MultipleErrorsPerChunk
(t *testing.T)
relay/helper/stream_scanner_test.go:603
FunctionTestStreamScannerHandler_StreamStatus_ReplacesPreInitialized
(t *testing.T)
relay/helper/stream_scanner_test.go:656
FunctionTestStreamScannerHandler_StreamStatus_SoftErrors
(t *testing.T)
relay/helper/stream_scanner_test.go:587
FunctionTestStreamScannerHandler_StreamStatus_Timeout
(t *testing.T)
relay/helper/stream_scanner_test.go:550
FunctionTestStreamStatus_HasErrors_Empty
(t *testing.T)
relay/common/stream_status_test.go:117
FunctionTestStreamStatus_HasErrors_NilSafe
(t *testing.T)
relay/common/stream_status_test.go:124
FunctionTestStreamStatus_IsNormalEnd
(t *testing.T)
relay/common/stream_status_test.go:131
FunctionTestStreamStatus_IsNormalEnd_NilSafe
(t *testing.T)
relay/common/stream_status_test.go:154
FunctionTestStreamStatus_RecordError_Basic
(t *testing.T)
relay/common/stream_status_test.go:68
FunctionTestStreamStatus_RecordError_CapAtMax
(t *testing.T)
relay/common/stream_status_test.go:81
FunctionTestStreamStatus_RecordError_Concurrent
(t *testing.T)
relay/common/stream_status_test.go:99
FunctionTestStreamStatus_RecordError_NilSafe
(t *testing.T)
relay/common/stream_status_test.go:93
FunctionTestStreamStatus_SetEndReason_Concurrent
(t *testing.T)
relay/common/stream_status_test.go:40
FunctionTestStreamStatus_SetEndReason_FirstWins
(t *testing.T)
relay/common/stream_status_test.go:11
FunctionTestStreamStatus_SetEndReason_NilSafe
(t *testing.T)
relay/common/stream_status_test.go:34
FunctionTestStreamStatus_SetEndReason_WithError
(t *testing.T)
relay/common/stream_status_test.go:23
FunctionTestStreamStatus_Summary
(t *testing.T)
relay/common/stream_status_test.go:160
FunctionTestStreamStatus_Summary_NilSafe
(t *testing.T)
relay/common/stream_status_test.go:178
FunctionTestStreamWriteBudget
(t *testing.T)
relay/helper/stream_scanner_test.go:695
FunctionTestStripeCreditedQuotaIncludesGroupRatio
(t *testing.T)
controller/topup_quota_limit_test.go:184
FunctionTestStripeWebhookEnabledRequiresTopUpAndWebhookConfig
(t *testing.T)
controller/payment_webhook_availability_test.go:39
FunctionTestSubmitContextExposesClientHeadersWithoutCredentials
(t *testing.T)
relay/channel/task/jsplugin/adaptor_test.go:1603
FunctionTestSubmitContextExposesOriginTasks
(t *testing.T)
relay/channel/task/jsplugin/adaptor_test.go:1525
FunctionTestSubmitContextNormalizesRequestBodyOnEveryCall
(t *testing.T)
relay/channel/task/jsplugin/adaptor_test.go:1630
FunctionTestSubmitContextOmitsOriginTasksWhenEmpty
(t *testing.T)
relay/channel/task/jsplugin/adaptor_test.go:1557
FunctionTestSubmitContextOriginTasksNilDataOnInvalidJSON
(t *testing.T)
relay/channel/task/jsplugin/adaptor_test.go:1575
FunctionTestSubmitResponseTypesContract
(t *testing.T)
pkg/jsplugin/registry_test.go:1282
FunctionTestSubmittedCredentialsAreRejected
(t *testing.T)
controller/provider_plugin_test.go:185
FunctionTestSubscriptionGroupCacheRefreshFailureDoesNotChangeCommittedResult
(t *testing.T)
model/subscription_auth_test.go:88
FunctionTestSubscriptionGroupTransitionsPreserveAuthVersionAndSessions
(t *testing.T)
model/subscription_auth_test.go:20
FunctionTestSubtractModelNames
(t *testing.T)
controller/channel_upstream_update_test.go:442
FunctionTestSunoFetchEmptyIDsReturnsSuccessfulEmptyArray
(t *testing.T)
middleware/task_plugin_test.go:1545
FunctionTestSunoResponsesProtocol
(t *testing.T)
plugins/sunoapi_responses_test.go:14
FunctionTestSupportsRegisteredHostProtocols
(t *testing.T)
pkg/jsplugin/routing_test.go:86
← previousnext →13,801–13,900 of 15,409, ranked by callers