MCPcopy Create free account
hub / github.com/dropbox/godropbox / TestOrEquals

Function TestOrEquals

container/bitarray/bitarray_test.go:63–73  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

61}
62
63func TestOrEquals(t *testing.T) {
64 a1 := randArray(t, n)
65 a2 := randArray(t, n)
66 o := a1.Clone()
67 o.OrEquals(a2)
68 for i := 0; i < n; i++ {
69 wrapRequire(t,
70 o.IsSet(i) == (a1.IsSet(i) || a2.IsSet(i)),
71 "i=%v", i)
72 }
73}
74
75func TestSetClear(t *testing.T) {
76 a := New(n)

Callers

nothing calls this directly

Calls 5

randArrayFunction · 0.85
wrapRequireFunction · 0.85
CloneMethod · 0.80
OrEqualsMethod · 0.80
IsSetMethod · 0.80

Tested by

no test coverage detected