MCPcopy Create free account

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

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

FunctionTestSSRFProtectionAllowsPrivateIPWhenExplicitlyEnabled
(t *testing.T)
common/ssrf_protection_test.go:31
FunctionTestSSRFProtectionRejectsLiteralPrivateAndReservedIPs
(t *testing.T)
common/ssrf_protection_test.go:10
FunctionTestSSRFProtectionRejectsResolvedPrivateIP
(t *testing.T)
common/ssrf_protection_test.go:41
FunctionTestSafePolicyRejectsRequestPhaseHostedToolLoss
(t *testing.T)
relaykit/relayconvert/internal/toolconv/policy_test.go:81
FunctionTestSameChannelPinsMergeToStricterRetryMode
(t *testing.T)
controller/channel_pin_retry_test.go:79
FunctionTestSamePriceCacheReadsRemainInInput
(t *testing.T)
service/tiered_settle_test.go:1152
FunctionTestSamplesCarryTextOnly
(t *testing.T)
pkg/jsplugin/provider_test.go:1174
FunctionTestSamplesLoadAsWritten
(t *testing.T)
pkg/jsplugin/provider_test.go:1158
FunctionTestSanitizeDBErrorKeepsNonDriverErrors
(t *testing.T)
model/gorm_logger_test.go:78
FunctionTestSanitizeDBErrorSQLiteDriver
(t *testing.T)
model/gorm_logger_test.go:67
FunctionTestSanitizeDBErrorStripsDriverMessage
保护契约:数据库驱动错误消息可能内联数据值,非 DEBUG 下日志只保留错误码。
model/gorm_logger_test.go:19
FunctionTestSanitizeURLForLogKeepsURLWithoutSensitiveQuery
(t *testing.T)
relay/common/relay_utils_test.go:51
FunctionTestSanitizeURLForLogMasksAWSAndSecretLikeQueryKeys
(t *testing.T)
relay/common/relay_utils_test.go:32
FunctionTestSanitizeURLForLogMasksSensitiveQueryValues
(t *testing.T)
relay/common/relay_utils_test.go:16
FunctionTestSanitizedTaskPluginErrorIgnoresDetailOn5xx
(t *testing.T)
middleware/task_plugin_test.go:1701
FunctionTestScheduledCancellationAndTLSKeepStoredState
(t *testing.T)
service/provider_plugin_test.go:1089
FunctionTestScheduledChangedKeyDiscardsAllResults
(t *testing.T)
service/provider_plugin_test.go:1469
FunctionTestScheduledChannelDatabaseRowLock
(t *testing.T)
model/channel_plugin_credential_test.go:461
FunctionTestScheduledChannelLockedCancellation
(t *testing.T)
model/channel_plugin_credential_test.go:427
FunctionTestScheduledChannelLockedMultiKey
(t *testing.T)
model/channel_plugin_credential_test.go:375
FunctionTestScheduledChannelLockedStatus
(t *testing.T)
model/channel_plugin_credential_test.go:296
FunctionTestScheduledContextAndResult
(t *testing.T)
pkg/jsplugin/provider_test.go:377
FunctionTestScheduledCredentialBalanceAndNodeSync
(t *testing.T)
service/provider_plugin_test.go:805
FunctionTestScheduledDisableDuringTimerRunsOnNextScan
(t *testing.T)
service/provider_plugin_test.go:1519
FunctionTestScheduledDisableHonorsChannelSwitchAndDoesNotRecurse
(t *testing.T)
service/provider_plugin_test.go:1062
FunctionTestScheduledDisabledTriggerAndThrottle
(t *testing.T)
service/provider_plugin_test.go:936
FunctionTestScheduledFollowerSkipsEveryTrigger
(t *testing.T)
service/provider_plugin_test.go:1447
FunctionTestScheduledHookDoesNotBlockKeySelection
(t *testing.T)
service/provider_plugin_test.go:1163
FunctionTestScheduledInvalidResultsWriteNothing
(t *testing.T)
service/provider_plugin_test.go:912
FunctionTestScheduledNextFailureAndIdleCost
(t *testing.T)
service/provider_plugin_test.go:966
FunctionTestScheduledOwnDisableDoesNotBecomeScanTrigger
(t *testing.T)
service/provider_plugin_test.go:1559
FunctionTestScheduledOwnDisableSyncDuringCommitDoesNotRecurse
(t *testing.T)
service/provider_plugin_test.go:1360
FunctionTestScheduledPoolBoundsAndRunningKey
(t *testing.T)
service/provider_plugin_test.go:1028
FunctionTestScheduledReplacementKeysGetAnInitialRun
(t *testing.T)
service/provider_plugin_test.go:1126
FunctionTestScheduledResultValidation
(t *testing.T)
pkg/jsplugin/provider_test.go:415
FunctionTestScheduledRunsOncePerKey
(t *testing.T)
service/provider_plugin_test.go:838
FunctionTestScheduledScanDetectsDisabledTransitionOnce
(t *testing.T)
service/provider_plugin_test.go:1238
FunctionTestScheduledScanRunsOnlyOnMaster
(t *testing.T)
service/provider_plugin_test.go:1148
FunctionTestScheduledStaleRemovedAndManualKeys
(t *testing.T)
service/provider_plugin_test.go:871
FunctionTestScheduledSyncBeforeMasterDisableDoesNotDuplicate
(t *testing.T)
service/provider_plugin_test.go:1413
FunctionTestScheduledSyncRetriesFailedQuery
(t *testing.T)
service/provider_plugin_test.go:1334
FunctionTestScheduledSyncSkipsIdleAndFollowerNodes
(t *testing.T)
service/provider_plugin_test.go:1301
FunctionTestSearchRedemptionsFiltersAndPaginates
(t *testing.T)
model/redemption_test.go:13
FunctionTestSearchTokensMasksKeyInResponse
(t *testing.T)
controller/token_test.go:470
FunctionTestSearchUsersSortsBeforePagination
(t *testing.T)
model/user_pagination_test.go:58
FunctionTestSecondRejectionTakesTheUsualErrorPath
(t *testing.T)
router/provider_plugin_relay_test.go:502
FunctionTestSecurityAccountDeletionAcceptsEitherFactorAndRevokesSessions
(t *testing.T)
controller/security_account_test.go:94
FunctionTestSecurityAccountDeletionConcurrentRequestsHaveOneWinner
(t *testing.T)
controller/security_account_test.go:214
FunctionTestSecurityAccountDeletionRechecksTransactionAndConsumesFailedProof
(t *testing.T)
controller/security_account_test.go:168
FunctionTestSecurityAccountDeletionRequiresScopedProof
(t *testing.T)
controller/security_account_test.go:38
FunctionTestSecurityAccountEmailConcurrentClaimsHaveOneOwner
(t *testing.T)
controller/security_account_test.go:740
FunctionTestSecurityAccountEmailConfirmationAndAudit
(t *testing.T)
controller/security_account_test.go:597
FunctionTestSecurityAccountEmailRejectsChangedAuthorization
(t *testing.T)
controller/security_account_test.go:768
FunctionTestSecurityAccountEmailResendAndAttemptLimit
(t *testing.T)
controller/security_account_test.go:655
FunctionTestSecurityAccountEncryptedLongPasswordLogin
(t *testing.T)
controller/security_account_test.go:543
FunctionTestSecurityAccountFirstPasswordRace
(t *testing.T)
controller/security_account_test.go:853
FunctionTestSecurityAccountLongUnicodePasswordAndSessionRotation
(t *testing.T)
controller/security_account_test.go:478
FunctionTestSecurityAccountMailsFollowTheOwnersLanguage
Email binding codes and account security notices are written in the account owner's saved language, else in the language the request states, and quote
controller/security_account_test.go:693
FunctionTestSecurityAccountOAuthBindingRejectsInvalidFlow
(t *testing.T)
controller/security_account_test.go:805
FunctionTestSecurityAccountPasswordPolicyAndHashCompatibility
(t *testing.T)
controller/security_account_test.go:511
FunctionTestSecurityAccountPasswordRequiresCurrentPassword
(t *testing.T)
controller/security_account_test.go:381
FunctionTestSecurityAccountProfileReadsPasswordStatusInOneQuery
(t *testing.T)
controller/security_account_test.go:415
FunctionTestSecurityAccountProfileUpdateDoesNotRequireProof
(t *testing.T)
controller/security_account_test.go:466
FunctionTestSecurityAccountRequiresProofBeforeMutation
(t *testing.T)
controller/security_account_test.go:354
FunctionTestSecurityAccountUnbindPreservesUsableLoginMethod
(t *testing.T)
controller/security_account_test.go:880
FunctionTestSecurityAndOperationEventsUseAuditTable
(t *testing.T)
controller/access_token_audit_test.go:729
FunctionTestSecurityEnrollmentAccessTokenFailureDoesNotRestoreProof
(t *testing.T)
controller/security_enrollment_test.go:385
FunctionTestSecurityEnrollmentAccessTokenLifecycleConsumesProofs
(t *testing.T)
controller/security_enrollment_test.go:282
FunctionTestSecurityEnrollmentAccessTokenMethodPolicy
(t *testing.T)
controller/security_enrollment_test.go:201
FunctionTestSecurityEnrollmentAccessTokenRejectsInvalidProofs
(t *testing.T)
controller/security_enrollment_test.go:357
FunctionTestSecurityEnrollmentAccessTokenRequiresProofBeforeMutation
(t *testing.T)
controller/security_enrollment_test.go:184
FunctionTestSecurityEnrollmentAccessTokenStepUpBoundaries
(t *testing.T)
controller/security_enrollment_test.go:475
FunctionTestSecurityEnrollmentAccessTokenStepUpDisablesTwoFA
A scoped token completes step-up on its own pat:<id> identity. The change it makes logs out every browser session and leaves the token usable.
controller/security_enrollment_test.go:422
FunctionTestSecurityEnrollmentChannelProofRejectsMismatchesBeforeConsumption
(t *testing.T)
controller/security_enrollment_test.go:820
FunctionTestSecurityEnrollmentCustomOAuthUsesExistingBinding
(t *testing.T)
controller/security_enrollment_test.go:1570
FunctionTestSecurityEnrollmentDatabaseErrorsAreNotReturned
(t *testing.T)
controller/security_enrollment_test.go:1455
FunctionTestSecurityEnrollmentEncryptedPasswordVerification
(t *testing.T)
controller/security_enrollment_test.go:1369
FunctionTestSecurityEnrollmentExpiredAndCrossSessionSetupsCannotActivate
(t *testing.T)
controller/security_enrollment_test.go:1527
FunctionTestSecurityEnrollmentMethodPolicy
(t *testing.T)
controller/security_enrollment_test.go:656
FunctionTestSecurityEnrollmentMissingTargetsAreBusinessErrors
(t *testing.T)
controller/security_enrollment_test.go:1777
FunctionTestSecurityEnrollmentNeverTrustsSessionForFirstFactor
(t *testing.T)
controller/security_enrollment_test.go:1728
FunctionTestSecurityEnrollmentOAuthQueriesReachHandlerWithoutLeakingToAccessLogs
(t *testing.T)
controller/security_enrollment_test.go:1550
FunctionTestSecurityEnrollmentOAuthVerificationNeverChangesLoginOrBindings
(t *testing.T)
controller/security_enrollment_test.go:1301
FunctionTestSecurityEnrollmentOperationContext
(t *testing.T)
controller/security_enrollment_test.go:752
FunctionTestSecurityEnrollmentPasskeyProofProtectsChannelKeyRead
(t *testing.T)
controller/security_enrollment_test.go:1043
FunctionTestSecurityEnrollmentPasswordProofIsBoundToSessionAndAction
(t *testing.T)
controller/security_enrollment_test.go:709
FunctionTestSecurityEnrollmentPendingPasskeyRejectsChangedAuthorization
(t *testing.T)
controller/security_enrollment_test.go:992
FunctionTestSecurityEnrollmentProofConcurrentConsumption
(t *testing.T)
controller/security_enrollment_test.go:860
FunctionTestSecurityEnrollmentProofIsBurnedAfterBusinessFailure
(t *testing.T)
controller/security_enrollment_test.go:909
FunctionTestSecurityEnrollmentProofRequiresLiveRecordAndExactDeadline
(t *testing.T)
controller/security_enrollment_test.go:885
FunctionTestSecurityEnrollmentProofStartsOnlyOneSetup
(t *testing.T)
controller/security_enrollment_test.go:738
FunctionTestSecurityEnrollmentProofStorageErrorsFailClosed
(t *testing.T)
controller/security_enrollment_test.go:925
FunctionTestSecurityEnrollmentPublicErrorsDiscardWrappedDetails
(t *testing.T)
controller/security_enrollment_test.go:1502
FunctionTestSecurityEnrollmentRejectsChangedFirstFactorPolicy
(t *testing.T)
controller/security_enrollment_test.go:1822
FunctionTestSecurityEnrollmentRejectsMissingProofBeforeCreatingCredentials
(t *testing.T)
controller/security_enrollment_test.go:627
FunctionTestSecurityEnrollmentSetupAndEnableRollback
(t *testing.T)
controller/security_enrollment_test.go:1252
FunctionTestSecurityEnrollmentTelegramAndWeChatFirstFactor
(t *testing.T)
controller/security_enrollment_test.go:1676
FunctionTestSecurityEnrollmentTwoFAFailureAccountingAndStorageErrors
(t *testing.T)
controller/security_enrollment_test.go:1397
FunctionTestSecurityEnrollmentTwoFAFlowAndSessionRotation
(t *testing.T)
controller/security_enrollment_test.go:1191
FunctionTestSecurityEnrollmentVerificationTransportsRejectInvalidContext
(t *testing.T)
controller/security_enrollment_test.go:969
← previousnext →13,601–13,700 of 15,409, ranked by callers