MCPcopy
hub / github.com/weaviate/weaviate / Set

Method Set

usecases/replica/hashtree/bitset.go:36–45  ·  view source on GitHub ↗
(i int)

Source from the content-addressed store, hash-verified

34}
35
36func (bset *Bitset) Set(i int) *Bitset {
37 if bset.IsSet(i) {
38 return bset
39 }
40
41 bset.bits[i/64] |= 1 << (i % 64)
42 bset.setCount++
43
44 return bset
45}
46
47func (bset *Bitset) Unset(i int) *Bitset {
48 if !bset.IsSet(i) {

Callers 15

TestBitSetFunction · 0.95
TestLevelDiffValidationFunction · 0.95
DiffMethod · 0.95
mainFunction · 0.45
doGenerateMethod · 0.45

Calls 1

IsSetMethod · 0.95

Tested by 15

TestBitSetFunction · 0.76
TestLevelDiffValidationFunction · 0.76
createTestServerFunction · 0.36
TestGenerateSingleResultFunction · 0.36
TestAPIErrorHandlingFunction · 0.36
TestClientRankFunction · 0.36