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
TestSSRFProtectionAllowsPrivateIPWhenExplicitlyEnabled
(t *testing.T)
common/ssrf_protection_test.go:31
Function
TestSSRFProtectionRejectsLiteralPrivateAndReservedIPs
(t *testing.T)
common/ssrf_protection_test.go:10
Function
TestSSRFProtectionRejectsResolvedPrivateIP
(t *testing.T)
common/ssrf_protection_test.go:41
Function
TestSafePolicyRejectsRequestPhaseHostedToolLoss
(t *testing.T)
relaykit/relayconvert/internal/toolconv/policy_test.go:81
Function
TestSameChannelPinsMergeToStricterRetryMode
(t *testing.T)
controller/channel_pin_retry_test.go:79
Function
TestSamePriceCacheReadsRemainInInput
(t *testing.T)
service/tiered_settle_test.go:1152
Function
TestSamplesCarryTextOnly
(t *testing.T)
pkg/jsplugin/provider_test.go:1174
Function
TestSamplesLoadAsWritten
(t *testing.T)
pkg/jsplugin/provider_test.go:1158
Function
TestSanitizeDBErrorKeepsNonDriverErrors
(t *testing.T)
model/gorm_logger_test.go:78
Function
TestSanitizeDBErrorSQLiteDriver
(t *testing.T)
model/gorm_logger_test.go:67
Function
TestSanitizeDBErrorStripsDriverMessage
保护契约:数据库驱动错误消息可能内联数据值,非 DEBUG 下日志只保留错误码。
model/gorm_logger_test.go:19
Function
TestSanitizeURLForLogKeepsURLWithoutSensitiveQuery
(t *testing.T)
relay/common/relay_utils_test.go:51
Function
TestSanitizeURLForLogMasksAWSAndSecretLikeQueryKeys
(t *testing.T)
relay/common/relay_utils_test.go:32
Function
TestSanitizeURLForLogMasksSensitiveQueryValues
(t *testing.T)
relay/common/relay_utils_test.go:16
Function
TestSanitizedTaskPluginErrorIgnoresDetailOn5xx
(t *testing.T)
middleware/task_plugin_test.go:1701
Function
TestScheduledCancellationAndTLSKeepStoredState
(t *testing.T)
service/provider_plugin_test.go:1089
Function
TestScheduledChangedKeyDiscardsAllResults
(t *testing.T)
service/provider_plugin_test.go:1469
Function
TestScheduledChannelDatabaseRowLock
(t *testing.T)
model/channel_plugin_credential_test.go:461
Function
TestScheduledChannelLockedCancellation
(t *testing.T)
model/channel_plugin_credential_test.go:427
Function
TestScheduledChannelLockedMultiKey
(t *testing.T)
model/channel_plugin_credential_test.go:375
Function
TestScheduledChannelLockedStatus
(t *testing.T)
model/channel_plugin_credential_test.go:296
Function
TestScheduledContextAndResult
(t *testing.T)
pkg/jsplugin/provider_test.go:377
Function
TestScheduledCredentialBalanceAndNodeSync
(t *testing.T)
service/provider_plugin_test.go:805
Function
TestScheduledDisableDuringTimerRunsOnNextScan
(t *testing.T)
service/provider_plugin_test.go:1519
Function
TestScheduledDisableHonorsChannelSwitchAndDoesNotRecurse
(t *testing.T)
service/provider_plugin_test.go:1062
Function
TestScheduledDisabledTriggerAndThrottle
(t *testing.T)
service/provider_plugin_test.go:936
Function
TestScheduledFollowerSkipsEveryTrigger
(t *testing.T)
service/provider_plugin_test.go:1447
Function
TestScheduledHookDoesNotBlockKeySelection
(t *testing.T)
service/provider_plugin_test.go:1163
Function
TestScheduledInvalidResultsWriteNothing
(t *testing.T)
service/provider_plugin_test.go:912
Function
TestScheduledNextFailureAndIdleCost
(t *testing.T)
service/provider_plugin_test.go:966
Function
TestScheduledOwnDisableDoesNotBecomeScanTrigger
(t *testing.T)
service/provider_plugin_test.go:1559
Function
TestScheduledOwnDisableSyncDuringCommitDoesNotRecurse
(t *testing.T)
service/provider_plugin_test.go:1360
Function
TestScheduledPoolBoundsAndRunningKey
(t *testing.T)
service/provider_plugin_test.go:1028
Function
TestScheduledReplacementKeysGetAnInitialRun
(t *testing.T)
service/provider_plugin_test.go:1126
Function
TestScheduledResultValidation
(t *testing.T)
pkg/jsplugin/provider_test.go:415
Function
TestScheduledRunsOncePerKey
(t *testing.T)
service/provider_plugin_test.go:838
Function
TestScheduledScanDetectsDisabledTransitionOnce
(t *testing.T)
service/provider_plugin_test.go:1238
Function
TestScheduledScanRunsOnlyOnMaster
(t *testing.T)
service/provider_plugin_test.go:1148
Function
TestScheduledStaleRemovedAndManualKeys
(t *testing.T)
service/provider_plugin_test.go:871
Function
TestScheduledSyncBeforeMasterDisableDoesNotDuplicate
(t *testing.T)
service/provider_plugin_test.go:1413
Function
TestScheduledSyncRetriesFailedQuery
(t *testing.T)
service/provider_plugin_test.go:1334
Function
TestScheduledSyncSkipsIdleAndFollowerNodes
(t *testing.T)
service/provider_plugin_test.go:1301
Function
TestSearchRedemptionsFiltersAndPaginates
(t *testing.T)
model/redemption_test.go:13
Function
TestSearchTokensMasksKeyInResponse
(t *testing.T)
controller/token_test.go:470
Function
TestSearchUsersSortsBeforePagination
(t *testing.T)
model/user_pagination_test.go:58
Function
TestSecondRejectionTakesTheUsualErrorPath
(t *testing.T)
router/provider_plugin_relay_test.go:502
Function
TestSecurityAccountDeletionAcceptsEitherFactorAndRevokesSessions
(t *testing.T)
controller/security_account_test.go:94
Function
TestSecurityAccountDeletionConcurrentRequestsHaveOneWinner
(t *testing.T)
controller/security_account_test.go:214
Function
TestSecurityAccountDeletionRechecksTransactionAndConsumesFailedProof
(t *testing.T)
controller/security_account_test.go:168
Function
TestSecurityAccountDeletionRequiresScopedProof
(t *testing.T)
controller/security_account_test.go:38
Function
TestSecurityAccountEmailConcurrentClaimsHaveOneOwner
(t *testing.T)
controller/security_account_test.go:740
Function
TestSecurityAccountEmailConfirmationAndAudit
(t *testing.T)
controller/security_account_test.go:597
Function
TestSecurityAccountEmailRejectsChangedAuthorization
(t *testing.T)
controller/security_account_test.go:768
Function
TestSecurityAccountEmailResendAndAttemptLimit
(t *testing.T)
controller/security_account_test.go:655
Function
TestSecurityAccountEncryptedLongPasswordLogin
(t *testing.T)
controller/security_account_test.go:543
Function
TestSecurityAccountFirstPasswordRace
(t *testing.T)
controller/security_account_test.go:853
Function
TestSecurityAccountLongUnicodePasswordAndSessionRotation
(t *testing.T)
controller/security_account_test.go:478
Function
TestSecurityAccountMailsFollowTheOwnersLanguage
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
Function
TestSecurityAccountOAuthBindingRejectsInvalidFlow
(t *testing.T)
controller/security_account_test.go:805
Function
TestSecurityAccountPasswordPolicyAndHashCompatibility
(t *testing.T)
controller/security_account_test.go:511
Function
TestSecurityAccountPasswordRequiresCurrentPassword
(t *testing.T)
controller/security_account_test.go:381
Function
TestSecurityAccountProfileReadsPasswordStatusInOneQuery
(t *testing.T)
controller/security_account_test.go:415
Function
TestSecurityAccountProfileUpdateDoesNotRequireProof
(t *testing.T)
controller/security_account_test.go:466
Function
TestSecurityAccountRequiresProofBeforeMutation
(t *testing.T)
controller/security_account_test.go:354
Function
TestSecurityAccountUnbindPreservesUsableLoginMethod
(t *testing.T)
controller/security_account_test.go:880
Function
TestSecurityAndOperationEventsUseAuditTable
(t *testing.T)
controller/access_token_audit_test.go:729
Function
TestSecurityEnrollmentAccessTokenFailureDoesNotRestoreProof
(t *testing.T)
controller/security_enrollment_test.go:385
Function
TestSecurityEnrollmentAccessTokenLifecycleConsumesProofs
(t *testing.T)
controller/security_enrollment_test.go:282
Function
TestSecurityEnrollmentAccessTokenMethodPolicy
(t *testing.T)
controller/security_enrollment_test.go:201
Function
TestSecurityEnrollmentAccessTokenRejectsInvalidProofs
(t *testing.T)
controller/security_enrollment_test.go:357
Function
TestSecurityEnrollmentAccessTokenRequiresProofBeforeMutation
(t *testing.T)
controller/security_enrollment_test.go:184
Function
TestSecurityEnrollmentAccessTokenStepUpBoundaries
(t *testing.T)
controller/security_enrollment_test.go:475
Function
TestSecurityEnrollmentAccessTokenStepUpDisablesTwoFA
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
Function
TestSecurityEnrollmentChannelProofRejectsMismatchesBeforeConsumption
(t *testing.T)
controller/security_enrollment_test.go:820
Function
TestSecurityEnrollmentCustomOAuthUsesExistingBinding
(t *testing.T)
controller/security_enrollment_test.go:1570
Function
TestSecurityEnrollmentDatabaseErrorsAreNotReturned
(t *testing.T)
controller/security_enrollment_test.go:1455
Function
TestSecurityEnrollmentEncryptedPasswordVerification
(t *testing.T)
controller/security_enrollment_test.go:1369
Function
TestSecurityEnrollmentExpiredAndCrossSessionSetupsCannotActivate
(t *testing.T)
controller/security_enrollment_test.go:1527
Function
TestSecurityEnrollmentMethodPolicy
(t *testing.T)
controller/security_enrollment_test.go:656
Function
TestSecurityEnrollmentMissingTargetsAreBusinessErrors
(t *testing.T)
controller/security_enrollment_test.go:1777
Function
TestSecurityEnrollmentNeverTrustsSessionForFirstFactor
(t *testing.T)
controller/security_enrollment_test.go:1728
Function
TestSecurityEnrollmentOAuthQueriesReachHandlerWithoutLeakingToAccessLogs
(t *testing.T)
controller/security_enrollment_test.go:1550
Function
TestSecurityEnrollmentOAuthVerificationNeverChangesLoginOrBindings
(t *testing.T)
controller/security_enrollment_test.go:1301
Function
TestSecurityEnrollmentOperationContext
(t *testing.T)
controller/security_enrollment_test.go:752
Function
TestSecurityEnrollmentPasskeyProofProtectsChannelKeyRead
(t *testing.T)
controller/security_enrollment_test.go:1043
Function
TestSecurityEnrollmentPasswordProofIsBoundToSessionAndAction
(t *testing.T)
controller/security_enrollment_test.go:709
Function
TestSecurityEnrollmentPendingPasskeyRejectsChangedAuthorization
(t *testing.T)
controller/security_enrollment_test.go:992
Function
TestSecurityEnrollmentProofConcurrentConsumption
(t *testing.T)
controller/security_enrollment_test.go:860
Function
TestSecurityEnrollmentProofIsBurnedAfterBusinessFailure
(t *testing.T)
controller/security_enrollment_test.go:909
Function
TestSecurityEnrollmentProofRequiresLiveRecordAndExactDeadline
(t *testing.T)
controller/security_enrollment_test.go:885
Function
TestSecurityEnrollmentProofStartsOnlyOneSetup
(t *testing.T)
controller/security_enrollment_test.go:738
Function
TestSecurityEnrollmentProofStorageErrorsFailClosed
(t *testing.T)
controller/security_enrollment_test.go:925
Function
TestSecurityEnrollmentPublicErrorsDiscardWrappedDetails
(t *testing.T)
controller/security_enrollment_test.go:1502
Function
TestSecurityEnrollmentRejectsChangedFirstFactorPolicy
(t *testing.T)
controller/security_enrollment_test.go:1822
Function
TestSecurityEnrollmentRejectsMissingProofBeforeCreatingCredentials
(t *testing.T)
controller/security_enrollment_test.go:627
Function
TestSecurityEnrollmentSetupAndEnableRollback
(t *testing.T)
controller/security_enrollment_test.go:1252
Function
TestSecurityEnrollmentTelegramAndWeChatFirstFactor
(t *testing.T)
controller/security_enrollment_test.go:1676
Function
TestSecurityEnrollmentTwoFAFailureAccountingAndStorageErrors
(t *testing.T)
controller/security_enrollment_test.go:1397
Function
TestSecurityEnrollmentTwoFAFlowAndSessionRotation
(t *testing.T)
controller/security_enrollment_test.go:1191
Function
TestSecurityEnrollmentVerificationTransportsRejectInvalidContext
(t *testing.T)
controller/security_enrollment_test.go:969
← previous
next →
13,601–13,700 of 15,409, ranked by callers