mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-10-08 20:07:51 +00:00
Use NewFileBitmap to get container implementation for testing ContainersIterator.
This commit is contained in:
parent
e8fcb0f055
commit
cfb9146515
1 changed files with 3 additions and 7 deletions
|
|
@ -4,15 +4,11 @@ import (
|
|||
"testing"
|
||||
)
|
||||
|
||||
//func TestContainersSliceIterator(t *testing.T) {
|
||||
// btc := NewBTreeContainers()
|
||||
// testContainersIterator(btc, t)
|
||||
//}
|
||||
func TestContainersBTreeIterator(t *testing.T) {
|
||||
slc := NewSliceContainers()
|
||||
func TestContainersIterator(t *testing.T) {
|
||||
slc := NewFileBitmap().Containers
|
||||
testContainersIterator(slc, t)
|
||||
|
||||
}
|
||||
|
||||
func testContainersIterator(cs Containers, t *testing.T) {
|
||||
itr, found := cs.Iterator(0)
|
||||
if found {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue