MCPcopy Create free account
hub / github.com/ByteStorage/FlyDB / exists

Method exists

structure/set.go:443–450  ·  view source on GitHub ↗
(member ...string)

Source from the content-addressed store, hash-verified

441 return zSet.exists(member...)
442}
443func (s *FSets) exists(member ...string) bool {
444 for _, s2 := range member {
445 if _, ok := (*s)[s2]; !ok {
446 return false
447 }
448 }
449 return true
450}
451
452func (s *SetStructure) Stop() error {
453 err := s.db.Close()

Callers 14

TestFSetsExistsFunction · 0.95
SIsMemberMethod · 0.45
existsMethod · 0.45
TestZRemsFunction · 0.45
TestZAddFunction · 0.45
TestZAddsFunction · 0.45
TestSkipList_deleteFunction · 0.45
Test_existsFunction · 0.45
TestSAddFunction · 0.45
TestSAddsFunction · 0.45
TestSRemsFunction · 0.45
TestSRemFunction · 0.45

Calls

no outgoing calls

Tested by 12

TestFSetsExistsFunction · 0.76
TestZRemsFunction · 0.36
TestZAddFunction · 0.36
TestZAddsFunction · 0.36
TestSkipList_deleteFunction · 0.36
Test_existsFunction · 0.36
TestSAddFunction · 0.36
TestSAddsFunction · 0.36
TestSRemsFunction · 0.36
TestSRemFunction · 0.36
TestSetStructure_existsFunction · 0.36
TestFSets_removeFunction · 0.36