Skip to content

Commit

Permalink
These run tests are obsolete.
Browse files Browse the repository at this point in the history
  • Loading branch information
lemire committed Apr 14, 2021
1 parent bb268bd commit 62310fe
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 87 deletions.
29 changes: 0 additions & 29 deletions roaring64/roaring64_test.go
Expand Up @@ -1830,35 +1830,6 @@ func TestStats(t *testing.T) {
assert.EqualValues(t, expectedStats, rr.Stats())
})

t.Run("Test Stats with run Container", func(t *testing.T) {
// Given that we should have a single run container
intSize := int(unsafe.Sizeof(int(0)))
var runContainerBytes uint64
if intSize == 4 {
runContainerBytes = 40
} else {
runContainerBytes = 52
}

expectedStats := roaring.Statistics{
Cardinality: 60000,
Containers: 1,

BitmapContainers: 0,
BitmapContainerValues: 0,
BitmapContainerBytes: 0,

RunContainers: 1,
RunContainerBytes: runContainerBytes,
RunContainerValues: 60000,
}

rr := NewBitmap()
rr.AddRange(0, 60000)

assert.EqualValues(t, expectedStats, rr.Stats())
})

t.Run("Test Stats with Array Container", func(t *testing.T) {
// Given a bitmap that should have a single array container
expectedStats := roaring.Statistics{
Expand Down
29 changes: 0 additions & 29 deletions roaring_test.go
Expand Up @@ -2084,35 +2084,6 @@ func TestStats(t *testing.T) {
assert.EqualValues(t, expectedStats, rr.Stats())
})

t.Run("Test Stats with run Container", func(t *testing.T) {
// Given that we should have a single run container
intSize := int(unsafe.Sizeof(int(0)))
var runContainerBytes uint64
if intSize == 4 {
runContainerBytes = 40
} else {
runContainerBytes = 36
}

expectedStats := Statistics{
Cardinality: 60000,
Containers: 1,

BitmapContainers: 0,
BitmapContainerValues: 0,
BitmapContainerBytes: 0,

RunContainers: 1,
RunContainerBytes: runContainerBytes,
RunContainerValues: 60000,
}

rr := NewBitmap()
rr.AddRange(0, 60000)

assert.EqualValues(t, expectedStats, rr.Stats())
})

t.Run("Test Stats with Array Container", func(t *testing.T) {
// Given a bitmap that should have a single array container
expectedStats := Statistics{
Expand Down
29 changes: 0 additions & 29 deletions roaringcow_test.go
Expand Up @@ -1864,35 +1864,6 @@ func TestStatsCOW(t *testing.T) {
assert.EqualValues(t, expectedStats, rr.Stats())
})

t.Run("Test Stats with run Container", func(t *testing.T) {
// Given that we should have a single run container
intSize := int(unsafe.Sizeof(int(0)))
var runContainerBytes uint64
if intSize == 4 {
runContainerBytes = 40
} else {
runContainerBytes = 36
}

expectedStats := Statistics{
Cardinality: 60000,
Containers: 1,

BitmapContainers: 0,
BitmapContainerValues: 0,
BitmapContainerBytes: 0,

RunContainers: 1,
RunContainerBytes: runContainerBytes,
RunContainerValues: 60000,
}
rr := NewBitmap()
rr.SetCopyOnWrite(true)
rr.AddRange(0, 60000)

assert.EqualValues(t, expectedStats, rr.Stats())
})

t.Run("Test Stats with Array Container", func(t *testing.T) {
// Given a bitmap that should have a single array container
expectedStats := Statistics{
Expand Down

0 comments on commit 62310fe

Please sign in to comment.