1 // Copyright (c) 2014, Suryandaru Triandana <syndtr@gmail.com>
2 // All rights reserved.
4 // Use of this source code is governed by a BSD-style license that can be
5 // found in the LICENSE file.
10 . "github.com/onsi/ginkgo"
12 . "github.com/syndtr/goleveldb/leveldb/iterator"
13 "github.com/syndtr/goleveldb/leveldb/testutil"
16 var _ = testutil.Defer(func() {
17 Describe("Array iterator", func() {
18 It("Should iterates and seeks correctly", func() {
20 kv := testutil.KeyValue_Generate(nil, 70, 1, 1, 5, 3, 3)
23 t := testutil.IteratorTesting{
25 Iter: NewArrayIterator(kv),
27 testutil.DoIteratorTesting(&t)