MCPcopy Create free account

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

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

FunctionTestProcessHeaderOverride_PassHeadersTemplateSetsRuntimeHeaders
(t *testing.T)
relay/channel/api_request_test.go:156
FunctionTestProcessHeaderOverride_PassthroughSkipsAcceptEncoding
(t *testing.T)
relay/channel/api_request_test.go:129
FunctionTestProcessHeaderOverride_RuntimeOverrideIsFinalHeaderMap
(t *testing.T)
relay/channel/api_request_test.go:98
FunctionTestProductionPluginNativeQueryTraversesInnerRouter
(t *testing.T)
router/plugin_router_test.go:871
FunctionTestProductionPluginRoutePipelineRequiresTokenAuth
(t *testing.T)
router/plugin_router_test.go:858
FunctionTestProjectedTaskArtifactValidationRejectsAmbiguousIdentity
(t *testing.T)
controller/task_generic_test.go:492
FunctionTestProtectedFetchDialerAllowsPrivateIPWhenWhitelisted
(t *testing.T)
service/protected_fetch_client_test.go:148
FunctionTestProtectedFetchDialerDialsWhenAllResolvedIPsAllowed
(t *testing.T)
service/protected_fetch_client_test.go:120
FunctionTestProtectedFetchDialerRejectsMixedResolvedIPs
(t *testing.T)
service/protected_fetch_client_test.go:91
FunctionTestProtectedFetchDialerRejectsPrivateReboundAddress
(t *testing.T)
service/protected_fetch_client_test.go:67
FunctionTestProtectedFetchDialerSkipsResolvedIPCheckWhenDisabled
(t *testing.T)
service/protected_fetch_client_test.go:174
FunctionTestProtectedFetchRoundTripperNoProxyUsesProtectedDialer
(t *testing.T)
service/protected_fetch_client_test.go:275
FunctionTestProtectedFetchRoundTripperRejectsPrivateTargetBeforeProxy
(t *testing.T)
service/protected_fetch_client_test.go:245
FunctionTestProtectedFetchRoundTripperReusesTransportPerProxy
(t *testing.T)
service/protected_fetch_client_test.go:304
FunctionTestProtectedFetchRoundTripperUsesConfiguredProxy
(t *testing.T)
service/protected_fetch_client_test.go:216
FunctionTestProtocolClaimDecodeAndValidation
(t *testing.T)
pkg/jsplugin/routing_test.go:258
FunctionTestProtocolClaimMarshalEmitsSupportsInTableOrder
(t *testing.T)
pkg/jsplugin/protocol_supports_test.go:217
FunctionTestProtocolHookInspectionIsDeadlineBounded
(t *testing.T)
pkg/jsplugin/routing_test.go:1049
FunctionTestProtocolSupportsHappyPaths
(t *testing.T)
pkg/jsplugin/protocol_supports_test.go:118
FunctionTestProtocolSupportsLoadErrors
(t *testing.T)
pkg/jsplugin/protocol_supports_test.go:37
FunctionTestProviderChannelManagementDatabaseMatrix
TestProviderChannelManagementDatabaseMatrix runs the channel writes and queries the provider part adds on every configured database: set TEST_MYSQL_DS
controller/provider_plugin_test.go:579
FunctionTestProviderChannelSelectionFollowsRelayRoutes
(t *testing.T)
model/channel_plugin_credential_test.go:146
FunctionTestProviderChannelServesOnlyItsRoutes
(t *testing.T)
router/provider_plugin_relay_test.go:338
FunctionTestProxyTaskMediaAllowsOnlyCredentiallessCrossOriginRedirect
(t *testing.T)
controller/task_generic_test.go:727
FunctionTestProxyTaskMediaForwardsRangeAndFiltersResponseHeaders
(t *testing.T)
controller/task_generic_test.go:513
FunctionTestProxyTaskMediaPassesThroughUnsatisfiedRange
(t *testing.T)
controller/task_generic_test.go:560
FunctionTestProxyTaskMediaReadsArtifactFromJSONContentPath
A descriptor with a content path reads the artifact out of a long-running operation the upstream returns again, as Vertex does for inline video.
controller/task_generic_test.go:617
FunctionTestPublicRecord
(t *testing.T)
relay/requestplugin/requestplugin_test.go:555
FunctionTestPublicRecordCaps
(t *testing.T)
relay/requestplugin/requestplugin_test.go:591
FunctionTestPublishCloseChannelsNoopsWhenRedisDisabled
(t *testing.T)
pkg/wsmanager/wsmanager_test.go:100
FunctionTestQueryBalanceURLNeedsAnAllowedHost
A balance request's url must be on the channel base URL host or a host of meta.allowedHosts, as the credential goes with it.
relay/channel/providerplugin/management_test.go:136
FunctionTestQuotaFromDecimal
TestQuotaFromDecimal checks the decimal entry point rounds and saturates consistently with the float variants.
common/quota_math_test.go:47
FunctionTestQuotaFromDecimalChecked
TestQuotaFromDecimalChecked verifies the decimal entry point reports clamps.
common/quota_math_test.go:118
FunctionTestQuotaFromFloat
TestQuotaFromFloat guards the billing invariant that oversized quota products (e.g. price multiplied by a huge user-supplied count) saturate instead o
common/quota_math_test.go:21
FunctionTestQuotaFromFloatChecked
TestQuotaFromFloatChecked verifies the clamp descriptor is nil in range and carries the correct kind/clamped value on saturation, so billing callers c
common/quota_math_test.go:57
FunctionTestQuotaFromFloatStrictReturnsTypedClampError
(t *testing.T)
common/quota_math_test.go:85
FunctionTestQuotaReminderFiresOncePerDrop
A low-balance reminder goes out once, on the charge that takes a wallet or subscription balance below the threshold. A balance already below it earns
service/user_notify_test.go:30
FunctionTestQuotaRound
--------------------------------------------------------------------------- Rounding -----------------------------------------------------------------
pkg/billingexpr/billingexpr_test.go:422
FunctionTestQuotaRound
TestQuotaRound checks half-away-from-zero rounding with the same saturation policy.
common/quota_math_test.go:35
FunctionTestQuotaRoundChecked
TestQuotaRoundChecked verifies the rounding entry point reports clamps the same way.
common/quota_math_test.go:104
FunctionTestRatioConfigExportsEffectiveExpressions
(t *testing.T)
controller/ratio_sync_test.go:47
FunctionTestRealtimeClientEvents
The client's text events run the ingress instances on a Responses-shaped view and get their changes; a rejection answers with an error event and drops
relay/requestplugin/socket_test.go:99
FunctionTestRealtimeFetchAppliesChannelHeaderOverrides
(t *testing.T)
relay/relay_task_test.go:56
FunctionTestRealtimeFetchRefundsTaskItFindsFailed
(t *testing.T)
relay/relay_task_test.go:88
FunctionTestRealtimeReplyMasksText
Text deltas go through the reply check: a mask rewrites the text the client gets, response.done included.
relay/requestplugin/socket_test.go:180
FunctionTestRealtimeReplyStops
A stop sends the client an error event and the upstream a response.cancel; the rest of the response is dropped and its response.done shows what the cl
relay/requestplugin/socket_test.go:220
FunctionTestRealtimeReport
Report runs once per response.done, with the events the client got, leaving out audio, and the quota the response was charged.
relay/requestplugin/socket_test.go:285
FunctionTestRealtimeUnusedIsFree
A session no instance matches gets no plugin state; one whose instances do not check replies or report passes every server event untouched.
relay/requestplugin/socket_test.go:164
FunctionTestReasoningEffortOverrideIsAuditedWithoutDebugMode
(t *testing.T)
relay/common/override_test.go:2773
FunctionTestRebuildToolPriceIndexIgnoresInvalidDirectValues
(t *testing.T)
setting/operation_setting/tools_price_test.go:169
FunctionTestRecalcQuotaFromRatiosIgnoresInvalidMultipliers
(t *testing.T)
relay/chat_completions_via_responses_test.go:97
FunctionTestRecalcQuotaFromRatiosRejectsAllInvalidAdjustedRatios
(t *testing.T)
relay/chat_completions_via_responses_test.go:118
FunctionTestRecalculate_ActualQuotaZero
(t *testing.T)
service/task_billing_test.go:1131
FunctionTestRecalculate_NegativeDelta
(t *testing.T)
service/task_billing_test.go:1072
FunctionTestRecalculate_PositiveDelta
=========================================================================== RecalculateTaskQuota tests ===============================================
service/task_billing_test.go:1033
FunctionTestRecalculate_RejectsNegativeActualQuota
(t *testing.T)
service/task_billing_test.go:1153
FunctionTestRecalculate_Subscription_NegativeDelta
(t *testing.T)
service/task_billing_test.go:1169
FunctionTestRecalculate_ZeroDelta
(t *testing.T)
service/task_billing_test.go:1111
FunctionTestRecentHistoryRejectsOversizedModelLists
(t *testing.T)
pkg/perf_metrics/metrics_test.go:114
FunctionTestRechargeEpayCreditsQuotaExactlyOnce
(t *testing.T)
model/payment_method_guard_test.go:193
FunctionTestRechargeEpayEnforcesFinalWalletQuotaLimit
(t *testing.T)
model/payment_method_guard_test.go:312
FunctionTestRechargeEpayKeepsRedisAndDatabaseCreditInSync
(t *testing.T)
model/payment_method_guard_test.go:219
FunctionTestRechargeEpayRejectsForeignAndNonPendingOrders
(t *testing.T)
model/payment_method_guard_test.go:267
FunctionTestRechargeEpayRejectsQuotaOverflowBeforeCompletingOrder
(t *testing.T)
model/payment_method_guard_test.go:296
FunctionTestRechargeEpayUpdatesPaymentMethodToActual
(t *testing.T)
model/payment_method_guard_test.go:247
FunctionTestRechargeWaffoPancake_RejectsMismatchedPaymentMethod
(t *testing.T)
model/payment_method_guard_test.go:91
FunctionTestRecordImmediateTaskResultSamplesSuccessOnly
Immediate submit results: only successes are sampled, timed from relay start.
pkg/perf_metrics/metrics_test.go:154
FunctionTestRecordTaskResultSamplesTerminalTasks
Terminal task sampling: success/failure counts, end-to-end latency, and token throughput only for successful tasks that report tokens.
pkg/perf_metrics/metrics_test.go:121
FunctionTestRedactTaskArtifactAccessAlsoCoversLegacyVideoRoute
(t *testing.T)
middleware/task_artifact_access_test.go:113
FunctionTestRedactVideoResponseBodyDropsInteractionInlineVideo
(t *testing.T)
service/task_polling_test.go:176
FunctionTestRedactVideoResponseBodyKeepsUntouchedBytes
(t *testing.T)
service/task_polling_test.go:186
FunctionTestRedactVideoResponseBodyPreservesPollingPayloadShape
(t *testing.T)
service/task_polling_test.go:139
FunctionTestRedeemConcurrentSingleSuccess
Exactly one of several concurrent redeems of the same code may win, and quota must be credited exactly once.
model/redemption_test.go:182
FunctionTestRedeemCreditsQuotaExactlyOnce
(t *testing.T)
model/redemption_test.go:128
FunctionTestRedeemRejectsWalletOverflow
(t *testing.T)
model/redemption_test.go:151
FunctionTestRedemptionQuotaRejectsWalletOverflow
(t *testing.T)
model/redemption_test.go:167
FunctionTestRedisBatchReserveNeverFallsBackToStaleDatabaseBalance
(t *testing.T)
model/quota_reserve_test.go:106
FunctionTestRedisChannelCloseEventsStayWithinDatabase
(t *testing.T)
pkg/wsmanager/wsmanager_test.go:115
FunctionTestRedisEmailVerificationRateLimiterPreservesResponseAndTTL
(t *testing.T)
middleware/rate_limit_test.go:99
FunctionTestRedisFailurePolicies
(t *testing.T)
middleware/rate_limit_test.go:201
FunctionTestRedisFixedWindowIsAtomicUnderConcurrency
(t *testing.T)
middleware/rate_limit_test.go:121
FunctionTestRedisFixedWindowRepairsCounterWithoutTTL
(t *testing.T)
middleware/rate_limit_test.go:184
FunctionTestRedisFixedWindowResetsAtBoundary
(t *testing.T)
middleware/rate_limit_test.go:160
FunctionTestRedisIPRateLimiterThresholdTTLAndNamespace
(t *testing.T)
middleware/rate_limit_test.go:51
FunctionTestRedisUserRateLimiterUsesSharedFixedWindow
(t *testing.T)
middleware/rate_limit_test.go:79
FunctionTestReencodeWebPCanvasMatchesFrame
A WebP image re-encodes only when the canvas size its VP8X chunk declares is the size of its frame: the decoder decodes the frame whatever the canvas
relay/requestplugin/attachments_test.go:349
FunctionTestRefreshConcurrentRequestsMakeOnePluginCall
(t *testing.T)
service/provider_plugin_test.go:330
FunctionTestRefreshFailuresKeepTheCredential
(t *testing.T)
service/provider_plugin_test.go:490
FunctionTestRefreshMergesItsResult
(t *testing.T)
service/provider_plugin_test.go:467
FunctionTestRefreshPluginCallHoldsNoChannelLock
The plugin call holds no channel lock: an edit of the channel made while it runs goes through at once, and a result for a line the edit replaced is di
service/provider_plugin_test.go:393
FunctionTestRefreshReloginDisablesAndNotifies
A credential only a new login restores disables its key whether or not channels are disabled automatically on errors.
service/provider_plugin_test.go:556
FunctionTestRefreshRemovedCredential
(t *testing.T)
service/provider_plugin_test.go:513
FunctionTestRefreshResults
(t *testing.T)
pkg/jsplugin/provider_test.go:358
FunctionTestRefreshRotatedTokenIsNeverSentAgain
(t *testing.T)
service/provider_plugin_test.go:433
FunctionTestRefreshTwoNodesMakeOnePluginCall
Two refreshers stand for two nodes: their single-flight groups do not see each other, so only the channel's refresh lock keeps the token from being se
service/provider_plugin_test.go:361
FunctionTestRefreshUserGroupCacheRepairsDelayedSameVersionWrite
(t *testing.T)
model/user_cache_auth_version_test.go:127
FunctionTestRefundMidjourneyQuotaUsesLegacyChannelFallbackWithoutTokenAdjustment
(t *testing.T)
service/task_billing_test.go:842
FunctionTestRefundTaskQuota_FundingFailureKeepsAccountingAndPendingMarker
(t *testing.T)
service/task_billing_test.go:1006
FunctionTestRefundTaskQuota_NoToken
(t *testing.T)
service/task_billing_test.go:976
FunctionTestRefundTaskQuota_Subscription
(t *testing.T)
service/task_billing_test.go:921
← previousnext →13,201–13,300 of 15,409, ranked by callers