Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/QuantumNous/new-api
/ Contains
Method
Contains
types/set.go:24–27 ·
view source on GitHub ↗
Contains 检查 Set 是否包含某个元素
(item T)
Source
from the content-addressed store, hash-verified
22
23
// Contains 检查 Set 是否包含某个元素
24
func
(s *Set[T]) Contains(item T) bool {
25
_, exists := s.items[item]
26
return
exists
27
}
28
29
// Len 返回 Set 中元素的数量
30
func
(s *Set[T]) Len() int {
Callers
15
TokenAuth
Function · 0.80
getModelRequest
Function · 0.80
TestGetAllTokensMasksKeyInResponse
Function · 0.80
TestSearchTokensMasksKeyInResponse
Function · 0.80
TestGetTokenMasksKeyInResponse
Function · 0.80
TestUpdateTokenMasksKeyInResponse
Function · 0.80
TestGetTokenKeyRequiresOwnershipAndReturnsFullKey
Function · 0.80
testChannel
Function · 0.80
buildTestRequest
Function · 0.80
TestListModelsIncludesTieredBillingModel
Function · 0.80
TestListModelsTokenLimitIncludesTieredBillingModel
Function · 0.80
TestTestAllChannelsRejectsExistingActiveTask
Function · 0.80
Calls
no outgoing calls
Tested by
15
TestGetAllTokensMasksKeyInResponse
Function · 0.64
TestSearchTokensMasksKeyInResponse
Function · 0.64
TestGetTokenMasksKeyInResponse
Function · 0.64
TestUpdateTokenMasksKeyInResponse
Function · 0.64
TestGetTokenKeyRequiresOwnershipAndReturnsFullKey
Function · 0.64
TestListModelsIncludesTieredBillingModel
Function · 0.64
TestListModelsTokenLimitIncludesTieredBillingModel
Function · 0.64
TestTestAllChannelsRejectsExistingActiveTask
Function · 0.64
TestBuildUpstreamModelUpdateTaskNotificationContent_OmitOverflowDetails
Function · 0.64
TestDetectAllChannelUpstreamModelUpdatesRejectsExistingActiveTask
Function · 0.64
TestRelayErrorHandlerTruncatesInvalidJSONBodyInLog
Function · 0.64
TestRelayErrorHandlerKeepsInvalidJSONBodyInDebugLog
Function · 0.64