Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/QuantumNous/new-api
/ functions
Functions
15,409 in github.com/QuantumNous/new-api
⨍
Functions
15,409
◇
Types & classes
2,241
Function
TestRefundTaskQuota_Wallet
=========================================================================== RefundTaskQuota tests ====================================================
service/task_billing_test.go:882
Function
TestRefundTaskQuota_ZeroQuota
(t *testing.T)
service/task_billing_test.go:958
Function
TestRegisteredCloseIsIdempotent
(t *testing.T)
pkg/wsmanager/wsmanager_test.go:79
Function
TestRegistryAdmitsInterdependentUpdatesAsOneGeneration
(t *testing.T)
pkg/jsplugin/routing_test.go:684
Function
TestRegistryAdmitsNewConflictsInDeterministicKeyOrder
(t *testing.T)
pkg/jsplugin/routing_test.go:649
Function
TestRegistryDecodesAndValidatesIcon
(t *testing.T)
pkg/jsplugin/registry_test.go:71
Function
TestRegistryDecodesAndValidatesUsageSchema
(t *testing.T)
pkg/jsplugin/registry_test.go:158
Function
TestRegistryExcludesConflictingPluginWithoutBlockingGeneration
(t *testing.T)
pkg/jsplugin/routing_test.go:587
Function
TestRegistryFindsEffectivePluginByBuiltInChannelType
(t *testing.T)
pkg/jsplugin/registry_test.go:526
Function
TestRegistryGetIgnoringMasterSwitchKeepsPerPluginSwitch
(t *testing.T)
pkg/jsplugin/registry_master_enabled_test.go:143
Function
TestRegistryIndexesNativeRoutesAndProtocolsInOneGeneration
(t *testing.T)
pkg/jsplugin/routing_test.go:20
Function
TestRegistryIndexesSharedEndpointCandidatesForDistinctLegacyProviders
(t *testing.T)
pkg/jsplugin/routing_test.go:69
Function
TestRegistryMasterSwitchIsOrthogonalToLayerFlags
(t *testing.T)
pkg/jsplugin/registry_master_enabled_test.go:121
Function
TestRegistryMutationsWhileDisabledDoNotResurrectEndpoints
(t *testing.T)
pkg/jsplugin/registry_master_enabled_test.go:74
Function
TestRegistryNoOpMutationsKeepCurrentGeneration
(t *testing.T)
pkg/jsplugin/routing_test.go:498
Function
TestRegistryNormalizesAllowedHosts
(t *testing.T)
pkg/jsplugin/registry_test.go:1013
Function
TestRegistryNormalizesBaseURL
(t *testing.T)
pkg/jsplugin/registry_test.go:971
Function
TestRegistryOverrideTakesPrecedenceOverFactory
(t *testing.T)
pkg/jsplugin/registry_test.go:18
Function
TestRegistryPublishesHealthyUpdateAlongsideRejectedUpdate
(t *testing.T)
pkg/jsplugin/routing_test.go:664
Function
TestRegistryRejectsImageReferencesInMetaIcon
(t *testing.T)
pkg/jsplugin/registry_test.go:1046
Function
TestRegistryRejectsInvalidUsageProfiles
(t *testing.T)
pkg/jsplugin/registry_test.go:1215
Function
TestRegistryRejectsPluginKeyLongerThanTaskPlatformColumn
(t *testing.T)
pkg/jsplugin/registry_test.go:57
Function
TestRegistryRejectsPrototypeInheritedHooks
(t *testing.T)
pkg/jsplugin/routing_test.go:949
Function
TestRegistryRejectsRemovedNativeRoutingFields
(t *testing.T)
pkg/jsplugin/registry_test.go:139
Function
TestRegistryReportsPartialAndFailedRebuildOutcomes
(t *testing.T)
pkg/jsplugin/routing_test.go:560
Function
TestRegistryRequiresArtifactHooksAsPair
(t *testing.T)
pkg/jsplugin/registry_test.go:123
Function
TestRegistryRequiresValidPluginAuthor
(t *testing.T)
pkg/jsplugin/registry_test.go:99
Function
TestRegistryRetainsIncumbentWhenUpdatedPluginConflicts
(t *testing.T)
pkg/jsplugin/routing_test.go:625
Function
TestRegistrySetDisabledFactoryKeysEmptySetDoesNotBumpGeneration
(t *testing.T)
pkg/jsplugin/registry_disabled_factory_test.go:83
Function
TestRegistrySetDisabledFactoryKeysHidesFactoryPlugin
(t *testing.T)
pkg/jsplugin/registry_disabled_factory_test.go:10
Function
TestRegistrySetDisabledFactoryKeysLeavesEnabledOverrideServing
(t *testing.T)
pkg/jsplugin/registry_disabled_factory_test.go:67
Function
TestRegistrySetEnabledHidesFactoryAndOverride
(t *testing.T)
pkg/jsplugin/registry_master_enabled_test.go:10
Function
TestRegistrySetEnabledNoOpDoesNotBumpGeneration
(t *testing.T)
pkg/jsplugin/registry_master_enabled_test.go:112
Function
TestRegistrySetEnabledTrueRestoresFactoryAndOverride
(t *testing.T)
pkg/jsplugin/registry_master_enabled_test.go:95
Function
TestRegistrySnapshotDisabledFactoryIsSorted
(t *testing.T)
pkg/jsplugin/registry_disabled_factory_test.go:96
Function
TestRegistrySnapshotSeparatesLayersWithoutExposingEntries
(t *testing.T)
pkg/jsplugin/registry_test.go:40
Function
TestRegistryUnregisterFallsBackToFactory
(t *testing.T)
pkg/jsplugin/registry_test.go:28
Function
TestRegistryUsageProfilesReplaceDefaultsAndIsolateSnapshots
(t *testing.T)
pkg/jsplugin/registry_test.go:1144
Function
TestRegistryValidatesChannelTypes
(t *testing.T)
pkg/jsplugin/registry_test.go:575
Function
TestRegistryValidatesUsageExamples
(t *testing.T)
pkg/jsplugin/registry_test.go:412
Function
TestRejectedCredentialRefreshesAndResendsOnce
(t *testing.T)
router/provider_plugin_relay_test.go:454
Function
TestRejectedNewOverrideRetainsFactoryIncumbent
(t *testing.T)
pkg/jsplugin/routing_test.go:763
Function
TestRejectedUpdateDoesNotRestoreIncumbentAheadOfHealthyPeer
(t *testing.T)
pkg/jsplugin/routing_test.go:715
Function
TestRejectionWithoutRefreshIsAnOrdinaryError
(t *testing.T)
router/provider_plugin_relay_test.go:525
Function
TestRelayConfigAcceptsAdvancedCustomConverters
(t *testing.T)
pkg/jsplugin/provider_test.go:204
Function
TestRelayErrorHandlerKeepsInvalidJSONBodyInDebugLog
(t *testing.T)
service/error_test.go:124
Function
TestRelayErrorHandlerKeepsOpenAIErrorMessage
(t *testing.T)
service/error_test.go:110
Function
TestRelayErrorHandlerKeepsStructuredErrorMessage
(t *testing.T)
service/error_test.go:96
Function
TestRelayErrorHandlerTruncatesInvalidJSONBodyInLog
(t *testing.T)
service/error_test.go:66
Function
TestRelayHTTP2HealthCheck
(t *testing.T)
service/http_client_transport_test.go:648
Function
TestRelayInfoConvOptionsGeminiJSONSchemaSupport
TestRelayInfoConvOptionsGeminiJSONSchemaSupport covers which upstreams get parametersJsonSchema and responseJsonSchema: every channel except one whose
relay/common/relay_info_gemini_settings_test.go:32
Function
TestRelayInfoConvOptionsUsesNormalizedGeminiSafetySettings
(t *testing.T)
relay/common/relay_info_gemini_settings_test.go:12
Function
TestRelayInfoGetFinalRequestRelayFormatFallsBackToConversionChain
(t *testing.T)
relay/common/relay_info_test.go:30
Function
TestRelayInfoGetFinalRequestRelayFormatFallsBackToRelayFormat
(t *testing.T)
relay/common/relay_info_test.go:39
Function
TestRelayInfoGetFinalRequestRelayFormatNilReceiver
(t *testing.T)
relay/common/relay_info_test.go:47
Function
TestRelayInfoGetFinalRequestRelayFormatPrefersExplicitFinal
(t *testing.T)
relay/common/relay_info_test.go:20
Function
TestRelayInfoMetaTypedNilReceiver
(t *testing.T)
relay/common/relay_info_test.go:52
Function
TestRelayInfoResponsesToolStateRoundTrip
(t *testing.T)
relay/common/relay_info_test.go:94
Function
TestRelayKeepAliveAcrossUpstreamRetries
(t *testing.T)
controller/relay_stream_test.go:95
Function
TestRelayKeepAliveDuringImagePreparation
(t *testing.T)
controller/relay_stream_test.go:31
Function
TestRelayKeepAliveHonorsStreamSettings
(t *testing.T)
controller/relay_stream_test.go:238
Function
TestRelayKeepAlivePreservesValidationErrors
(t *testing.T)
controller/relay_stream_test.go:172
Function
TestRelayOnlyPluginMatchesAdvancedCustomChannel
A relay-only plugin is an Advanced Custom channel under another name: the same request reaches the upstream, the same reply reaches the client and the
router/provider_plugin_relay_test.go:242
Function
TestRelayRouteValidation
(t *testing.T)
pkg/jsplugin/provider_test.go:124
Function
TestRelayStreamErrorAfterKeepAlive
(t *testing.T)
controller/relay_stream_test.go:275
Function
TestRelayTaskPluginEndpointNeverEntersOrdinaryRelayWhenClaimed
(t *testing.T)
controller/plugin_endpoint_test.go:28
Function
TestRelayTaskPluginEndpointPreservesUnclaimedFallback
(t *testing.T)
controller/plugin_endpoint_test.go:13
Function
TestRelayTaskSubmitAcceptsAnySuccessfulUpstreamStatus
Issue #7478: task APIs answer 201 Created or 202 Accepted on submission. Every 2xx must reach parseSubmitResponse; only other statuses are upstream fa
relay/relay_task_test.go:733
Function
TestRelayTaskSubmitAliasBillingIdentityAndExprFallback
(t *testing.T)
relay/relay_task_test.go:315
Function
TestRelayTaskSubmitDeclaredNameWithoutMappingIsUnchanged
(t *testing.T)
relay/relay_task_test.go:251
Function
TestRelayTaskSubmitDoesNotApplyMappingTwice
(t *testing.T)
relay/relay_task_test.go:264
Function
TestRelayTaskSubmitEmptyOriginKeepsLateMapping
(t *testing.T)
relay/relay_task_test.go:276
Function
TestRelayTaskSubmitMapsBeforeValidateWhenOriginSet
(t *testing.T)
relay/relay_task_test.go:236
Function
TestRelayTaskSubmitPricesModelsAPluginAlsoRelays
One plugin serves a model on chat paths and as a task. The model-level price prices both only when it is per call or reads usage facts; otherwise task
relay/relay_task_test.go:617
Function
TestRelayTaskSubmitRetryRepricesAndReservesBeforeUpstream
A retry prices the plugin it lands on from scratch and holds that price before the upstream sees the request. Plugin A fails upstream on the first att
relay/relay_task_test.go:795
Function
TestRelaykitBoundary
(t *testing.T)
relaykit/relayconvert/boundary_test.go:44
Function
TestRemoveDisabledFieldsAllowInferenceGeo
(t *testing.T)
relay/common/override_test.go:2445
Function
TestRemoveDisabledFieldsAllowSpeed
(t *testing.T)
relay/common/override_test.go:2461
Function
TestRemoveDisabledFieldsDefaultFiltering
(t *testing.T)
relay/common/override_test.go:2393
Function
TestRemoveDisabledFieldsKeepsNestedKeyOrder
Upstreams fill a schema's properties in their order, so removing a field must leave the client's nested key order as it was.
relay/common/override_test.go:2414
Function
TestRemoveDisabledFieldsKeepsUntouchedBytes
Other members keep their bytes and order. A disabled key sent twice is removed in every copy, since upstreams read the last one.
relay/common/override_test.go:2425
Function
TestRemoveDisabledFieldsNoControlledFieldsKeepsBody
(t *testing.T)
relay/common/override_test.go:2434
Function
TestRemoveDisabledFieldsSkipWhenChannelPassThroughEnabled
(t *testing.T)
relay/common/override_test.go:2356
Function
TestRemoveDisabledFieldsSkipWhenGlobalPassThroughEnabled
(t *testing.T)
relay/common/override_test.go:2372
Function
TestRemoveGeminiDisabledFieldsDropsFunctionResponseIDs
Vertex AI rejects functionResponse.id. Only the ids are removed; inline data and every other member keep their bytes and order.
relay/common/relay_info_gemini_settings_test.go:63
Function
TestRemovedEndpointsAndProtocolHooksAreValidatedAtCompileTime
(t *testing.T)
pkg/jsplugin/routing_test.go:902
Function
TestRemovingCredentialsRevokesThem
(t *testing.T)
controller/provider_plugin_test.go:278
Function
TestRemovingOverrideNeverRetainsRemovedIncumbent
(t *testing.T)
pkg/jsplugin/routing_test.go:738
Function
TestRenderGeminiMapsAndClampsInsteadOfRejecting
(t *testing.T)
relaykit/relayconvert/reasoning/gemini_test.go:11
Function
TestRenewSystemTaskLock
(t *testing.T)
model/system_task_test.go:418
Function
TestReplayFixture
(t *testing.T)
pkg/jsplugin/fixture_test.go:26
Function
TestReplayFixtureReportsMismatch
(t *testing.T)
pkg/jsplugin/fixture_test.go:41
Function
TestReplayableBodiesOverOneStorageKeepOwnCursors
(t *testing.T)
common/body_storage_test.go:20
Function
TestReplyChecksThroughTheRelay
Reply checks run on the answer the real handlers write: the client gets the masked text, the request is billed from the upstream usage, a stop ends a
router/provider_plugin_relay_test.go:2142
Function
TestReplyClaudeStreamReleasesHeldTextBeforeTheBlockEnds
(t *testing.T)
relay/requestplugin/requestplugin_test.go:1465
Function
TestReplyDryRun
(t *testing.T)
relay/requestplugin/requestplugin_test.go:1499
Function
TestReplyDryRunAfterARejection
(t *testing.T)
relay/requestplugin/requestplugin_test.go:1563
Function
TestReplyFailures
(t *testing.T)
relay/requestplugin/requestplugin_test.go:1147
Function
TestReplyGeminiPartsKeepTheirPlaces
(t *testing.T)
relay/requestplugin/requestplugin_test.go:1912
Function
TestReplyGeminiStreamSkipsThoughts
(t *testing.T)
relay/requestplugin/requestplugin_test.go:1637
← previous
next →
13,301–13,400 of 15,409, ranked by callers