MCPcopy
hub / github.com/zincsearch/zincsearch / Contains

Method Contains

pkg/zutils/hash/rendezvous/rendezvous.go:90–95  ·  view source on GitHub ↗
(node string)

Source from the content-addressed store, hash-verified

88}
89
90func (r *Rendezvous) Contains(node string) bool {
91 r.lock.RLock()
92 _, ok := r.nodes[node]
93 r.lock.RUnlock()
94 return ok
95}
96
97func (r *Rendezvous) Add(node string) {
98 if r.Contains(node) {

Callers 15

AddMethod · 0.95
HTTPCacheForUIFunction · 0.80
getPartValueFunction · 0.80
TestGetRendererFunction · 0.80
NewMappingCharFilterFunction · 0.80
ParseFuzzinessFunction · 0.80
TestLoginFunction · 0.80
TestCreateUpdateRoleFunction · 0.80
TestListRoleFunction · 0.80
TestDeleteRoleFunction · 0.80
TestCreateUpdateUserFunction · 0.80
TestListUserFunction · 0.80

Calls

no outgoing calls

Tested by 15

TestGetRendererFunction · 0.64
TestLoginFunction · 0.64
TestCreateUpdateRoleFunction · 0.64
TestListRoleFunction · 0.64
TestDeleteRoleFunction · 0.64
TestCreateUpdateUserFunction · 0.64
TestListUserFunction · 0.64
TestDeleteUserFunction · 0.64
TestSearchV1Function · 0.64
TestSearchDSLFunction · 0.64
TestMultipleSearchFunction · 0.64
assertHTTPResponseFunction · 0.64