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
TestPasskeyDefaultsDoNotRestrictUnrelatedServerAddressSetup
(t *testing.T)
controller/passkey_test.go:545
Function
TestPasskeyDomainChoicesRespectOriginAndConfiguration
(t *testing.T)
controller/passkey_test.go:261
Function
TestPasskeyDomainEndpointRequiresRoot
(t *testing.T)
controller/passkey_test.go:524
Function
TestPasskeyDomainErrorsReturnMessageKeys
The web console translates message_key, so every request language gets the same English source text.
controller/passkey_test.go:670
Function
TestPasskeyDomainFailuresDoNotLogCredentials
(t *testing.T)
controller/passkey_test.go:643
Function
TestPasskeyDomainPreviewConfirmationAndAudit
(t *testing.T)
controller/passkey_test.go:358
Function
TestPasskeyDomainRemovalProtectsExistingAndUnknownCredentials
(t *testing.T)
controller/passkey_test.go:312
Function
TestPasskeyDomainRemovalWithoutAffectedCredentialsNeedsNoOverride
(t *testing.T)
controller/passkey_test.go:331
Function
TestPasskeyDomainSettingsAcceptExactHTTPSInternalHosts
(t *testing.T)
controller/passkey_test.go:444
Function
TestPasskeyDomainsPreserveCredentialsAcrossVerificationFlows
(t *testing.T)
controller/passkey_test.go:133
Function
TestPasskeyDomainsRejectInvalidAssertions
(t *testing.T)
controller/passkey_test.go:202
Function
TestPasskeyImplicitDomainChangesRetainPreviousTrust
(t *testing.T)
controller/passkey_test.go:472
Function
TestPasskeyRPIDMigrationPreservesExistingCredentials
(t *testing.T)
controller/passkey_test.go:719
Function
TestPasskeyRPIDRotationKeepsInFlightRegistration
(t *testing.T)
controller/passkey_test.go:617
Function
TestPasskeyRPIDRotationRetainsDefaultsAndRollsBackOnFailure
(t *testing.T)
controller/passkey_test.go:577
Function
TestPasskeyRegisterFinishRejectsUnapprovedFlowWithoutConsumingIt
(t *testing.T)
controller/passkey_test.go:783
Function
TestPasskeyRegistrationAndDomainRemovalSerialize
(t *testing.T)
controller/passkey_test.go:488
Function
TestPasskeyRegistrationRejectsUnavailableRequestOrigin
(t *testing.T)
controller/passkey_test.go:557
Function
TestPasskeySnapshotDoesNotMaterializeDefaults
(t *testing.T)
controller/passkey_test.go:347
Function
TestPasswordResetBumpsAuthVersionAndRevokesSessions
(t *testing.T)
model/user_session_test.go:631
Function
TestPasswordResetDoesNotClearSessionIssuanceHistory
(t *testing.T)
service/auth_session_test.go:171
Function
TestPatchClaudeMessageDeltaUsageDataPreserveUnknownFields
(t *testing.T)
relay/channel/claude/message_delta_usage_patch_test.go:14
Function
TestPatchClaudeMessageDeltaUsageDataZeroValueChecks
(t *testing.T)
relay/channel/claude/message_delta_usage_patch_test.go:33
Function
TestPatchOverTheBodyLimit
(t *testing.T)
relay/requestplugin/requestplugin_test.go:409
Function
TestPath2RelayMode
(t *testing.T)
relay/constant/relay_mode_test.go:9
Function
TestPaymentReturnPathUsesDefaultDashboardRoutes
(t *testing.T)
controller/return_path_test.go:10
Function
TestPaymentReturnURLUsesSuppliedDefaultDashboardPath
(t *testing.T)
service/return_path_test.go:10
Function
TestPendingTwoFASetupAPIsRejectEnabledFactor
(t *testing.T)
model/user_authentication_test.go:253
Function
TestPendingUserAuthFenceRejectsStaleCacheWrite
(t *testing.T)
model/user_cache_auth_version_test.go:99
Function
TestPerProtocolModelsAcceptSharedPluginClaims
(t *testing.T)
pkg/jsplugin/routing_test.go:232
Function
TestPerProtocolModelsAllowDisjointPluginsOnSharedProtocol
(t *testing.T)
pkg/jsplugin/routing_test.go:182
Function
TestPerProtocolModelsNarrowEndpointBindings
(t *testing.T)
pkg/jsplugin/routing_test.go:165
Function
TestPerformanceAggregationAndFlush
TEST_PERF_MYSQL_DSN / TEST_PERF_POSTGRES_DSN optionally run the aggregation against isolated real MySQL/PostgreSQL databases.
pkg/perf_metrics/metrics_test.go:189
Function
TestPerformanceWindowIncludesCurrentHour
(t *testing.T)
pkg/perf_metrics/metrics_test.go:98
Function
TestPinTaskPluginEndpointMalformedStreamStillFailsInPrepare
(t *testing.T)
middleware/task_plugin_test.go:1842
Function
TestPinTaskPluginEndpointMovesParserToSurvivingSharedCandidate
(t *testing.T)
middleware/task_plugin_test.go:1868
Function
TestPinTaskPluginEndpointRejectsUnsupportedRequestForms
(t *testing.T)
middleware/task_plugin_test.go:1761
Function
TestPinnedTaskPluginChannelTypesIncludesCompatibleTypes
(t *testing.T)
service/channel_select_test.go:133
Function
TestPinnedTaskPluginChannelTypesIncludesSharedEndpointProviders
(t *testing.T)
service/channel_select_test.go:52
Function
TestPinnedTaskPluginChannelTypesLeavesGenericChannelsKeyed
(t *testing.T)
service/channel_select_test.go:36
Function
TestPinnedTaskPluginChannelTypesUsesPinnedGenerationIndex
(t *testing.T)
service/channel_select_test.go:14
Function
TestPlanScopeModels
(t *testing.T)
relay/requestplugin/requestplugin_test.go:1577
Function
TestPlanScopeOrder
(t *testing.T)
relay/requestplugin/requestplugin_test.go:123
Function
TestPluginAuthoredHeaderOnly404PassesThrough
(t *testing.T)
router/plugin_router_test.go:101
Function
TestPluginCLI
(t *testing.T)
pkg/jsplugin/cli_test.go:13
Function
TestPluginCLIWarnsOnParseTaskResultInProgressFallback
(t *testing.T)
pkg/jsplugin/cli_test.go:31
Function
TestPluginConverter
(t *testing.T)
router/provider_plugin_relay_test.go:829
Function
TestPluginConverterBinaryReplies
A binary reply reaches the client byte for byte with the content type the plugin set, and is billed as the same audio from an Advanced Custom channel.
router/provider_plugin_relay_test.go:1650
Function
TestPluginConverterEndpointsBillLikeAdvancedCustom
Every relayed endpoint but realtime takes a plugin converter, and the reply it converts is billed as an Advanced Custom channel bills the same reply.
router/provider_plugin_relay_test.go:1546
Function
TestPluginConverterLeavesErrorsToTheHost
(t *testing.T)
router/provider_plugin_relay_test.go:936
Function
TestPluginConverterMapsVendorErrors
(t *testing.T)
router/provider_plugin_relay_test.go:1129
Function
TestPluginConverterMultipartRequests
A multipart client request reaches a vendor as the form, JSON or file the plugin builds of it, and is billed as on an Advanced Custom channel.
router/provider_plugin_relay_test.go:1771
Function
TestPluginConverterNeedsAllHooksAndARoute
(t *testing.T)
pkg/jsplugin/provider_test.go:150
Function
TestPluginConverterPath
(t *testing.T)
router/provider_plugin_relay_test.go:1399
Function
TestPluginConverterRequestFailures
A conversion the host cannot send fails before anything reaches the vendor and costs nothing.
router/provider_plugin_relay_test.go:1883
Function
TestPluginConverterSignsTheFinalBytes
prepareRequest sees the markers, signRequest the hash of the bytes with the files in them, and a resend after a refresh sends the same bytes.
router/provider_plugin_relay_test.go:1924
Function
TestPluginDebugLogsOnlyOwnedRoutes
(t *testing.T)
router/plugin_router_test.go:52
Function
TestPluginDispatcherMissFallsThroughWithoutLeakingInnerResponse
(t *testing.T)
router/plugin_router_test.go:32
Function
TestPluginDisplayMetadata
(t *testing.T)
pkg/jsplugin/registry_test.go:1096
Function
TestPluginErrorRejectsTheCredential
(t *testing.T)
router/provider_plugin_relay_test.go:1366
Function
TestPluginInnerContextImportsRequestMetadataAndTrustedProxyConfig
(t *testing.T)
router/plugin_router_test.go:255
Function
TestPluginJSONValuesPreserveCodecNormalizationAndIsolation
(t *testing.T)
relay/channel/task/jsplugin/adaptor_test.go:2392
Function
TestPluginKeyAndKeyAddressesAreValidated
The gateway serves a plugin's routes under /{key}, so a key may not name a host namespace. A plugin may declare one of those addresses itself, as Type
pkg/jsplugin/routing_test.go:1091
Function
TestPluginLoginAPI
(t *testing.T)
controller/provider_plugin_test.go:326
Function
TestPluginLoginAddAccount
(t *testing.T)
service/provider_plugin_login_test.go:596
Function
TestPluginLoginAddAccountKeepsAKeyThatNeedsLoginDisabled
(t *testing.T)
service/provider_plugin_login_test.go:653
Function
TestPluginLoginAddsLineInMultiKeyMode
(t *testing.T)
service/provider_plugin_login_test.go:564
Function
TestPluginLoginCallbackRejections
(t *testing.T)
service/provider_plugin_login_test.go:251
Function
TestPluginLoginConcurrentLoginsHoldOneAccountOnce
(t *testing.T)
service/provider_plugin_login_test.go:545
Function
TestPluginLoginConcurrentSubmitRunsThePluginOnce
(t *testing.T)
service/provider_plugin_login_test.go:382
Function
TestPluginLoginDevice
(t *testing.T)
service/provider_plugin_login_test.go:156
Function
TestPluginLoginDeviceExpires
(t *testing.T)
service/provider_plugin_login_test.go:194
Function
TestPluginLoginDoneConsumesTheFlow
(t *testing.T)
service/provider_plugin_login_test.go:367
Function
TestPluginLoginEnablesOnlyWhatTheHostDisabled
(t *testing.T)
service/provider_plugin_login_test.go:674
Function
TestPluginLoginExpiredFlow
(t *testing.T)
service/provider_plugin_login_test.go:344
Function
TestPluginLoginFields
(t *testing.T)
service/provider_plugin_login_test.go:206
Function
TestPluginLoginFlowFollowsTheChannel
(t *testing.T)
service/provider_plugin_login_test.go:731
Function
TestPluginLoginFlowLivesFifteenMinutes
(t *testing.T)
service/provider_plugin_login_test.go:356
Function
TestPluginLoginInvalidStepIsRejected
(t *testing.T)
service/provider_plugin_login_test.go:427
Function
TestPluginLoginKeepsSecretsOutOfViewsAndLogs
Nothing the plugin holds for the flow reaches the browser or the log.
service/provider_plugin_login_test.go:442
Function
TestPluginLoginNeedsALoginPlugin
(t *testing.T)
service/provider_plugin_login_test.go:717
Function
TestPluginLoginOnExistingCredential
(t *testing.T)
service/provider_plugin_login_test.go:486
Function
TestPluginLoginOneAccountPerPlugin
(t *testing.T)
service/provider_plugin_login_test.go:518
Function
TestPluginLoginPaste
(t *testing.T)
service/provider_plugin_login_test.go:112
Function
TestPluginLoginPasteRejectsBadAddresses
(t *testing.T)
service/provider_plugin_login_test.go:138
Function
TestPluginLoginRedirect
(t *testing.T)
service/provider_plugin_login_test.go:79
Function
TestPluginLoginRefusesJSONArrayKeys
(t *testing.T)
service/provider_plugin_login_test.go:708
Function
TestPluginLoginRejectsInputOfAnotherStep
(t *testing.T)
service/provider_plugin_login_test.go:233
Function
TestPluginLoginRoutesUseExpectedPermissions
(t *testing.T)
router/channel_router_test.go:46
Function
TestPluginLoginSingleKeyReplacesTheKey
(t *testing.T)
service/provider_plugin_login_test.go:584
Function
TestPluginLoginThrowLeavesTheStepUsable
(t *testing.T)
service/provider_plugin_login_test.go:409
Function
TestPluginLoginVendorErrorCodeIsSanitized
(t *testing.T)
service/provider_plugin_login_test.go:333
Function
TestPluginModelListKey
(t *testing.T)
service/provider_plugin_test.go:708
Function
TestPluginOwnedPathMethodMismatchReturns405
(t *testing.T)
router/plugin_router_test.go:122
Function
TestPluginParts
(t *testing.T)
pkg/jsplugin/provider_test.go:45
Function
TestPluginPathOwnershipIsExclusivePerMethod
Overlapping routes of different plugins are all admitted: per method, Gin answers a literal segment before a parameter.
router/plugin_router_test.go:631
Function
TestPluginProtocolBridgeBoundsDatabaseReadBelowHeartbeat
(t *testing.T)
controller/plugin_protocol_test.go:391
Function
TestPluginProtocolObservationLimiterCaps
(t *testing.T)
controller/plugin_protocol_limiter_test.go:12
Function
TestPluginProtocolObservationLimiterConcurrentAdmissionsRespectCap
(t *testing.T)
controller/plugin_protocol_limiter_test.go:186
Function
TestPluginProtocolObservationLimiterRejectsMissingIdentityWithoutConsumingCapacity
(t *testing.T)
controller/plugin_protocol_limiter_test.go:153
← previous
next →
13,001–13,100 of 15,409, ranked by callers