From c0ae4881ab0f827f7964b47cff59d60d8c85f499 Mon Sep 17 00:00:00 2001 From: Ben Johnson Date: Wed, 16 Apr 2014 15:05:30 -0400 Subject: Add Cursor.Next() to C cursor. --- cursor_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'cursor_test.go') diff --git a/cursor_test.go b/cursor_test.go index 00fc561..fe406bf 100644 --- a/cursor_test.go +++ b/cursor_test.go @@ -89,7 +89,7 @@ func TestCursor_EmptyBucketReverse(t *testing.T) { } // Ensure that a Tx cursor can iterate over a single root with a couple elements. -func TestCursor_LeafRoot(t *testing.T) { +func TestCursor_Iterate_Leaf(t *testing.T) { withOpenDB(func(db *DB, path string) { db.Update(func(tx *Tx) error { tx.CreateBucket([]byte("widgets")) @@ -192,7 +192,7 @@ func TestCursor_Restart(t *testing.T) { } // Ensure that a Tx can iterate over all elements in a bucket. -func TestCursor_Iterate(t *testing.T) { +func TestCursor_QuickCheck(t *testing.T) { f := func(items testdata) bool { withOpenDB(func(db *DB, path string) { // Bulk insert all values. @@ -227,7 +227,7 @@ func TestCursor_Iterate(t *testing.T) { } // Ensure that a transaction can iterate over all elements in a bucket in reverse. -func TestCursor_Iterate_Reverse(t *testing.T) { +func TestCursor_QuickCheck_Reverse(t *testing.T) { f := func(items testdata) bool { withOpenDB(func(db *DB, path string) { // Bulk insert all values. @@ -262,7 +262,7 @@ func TestCursor_Iterate_Reverse(t *testing.T) { } // Ensure that a Tx cursor can iterate over subbuckets. -func TestCursor_Iterate_BucketsOnly(t *testing.T) { +func TestCursor_QuickCheck_BucketsOnly(t *testing.T) { withOpenDB(func(db *DB, path string) { db.Update(func(tx *Tx) error { b, err := tx.CreateBucket([]byte("widgets")) @@ -289,7 +289,7 @@ func TestCursor_Iterate_BucketsOnly(t *testing.T) { } // Ensure that a Tx cursor can reverse iterate over subbuckets. -func TestCursor_Iterate_BucketsOnly_Reverse(t *testing.T) { +func TestCursor_QuickCheck_BucketsOnly_Reverse(t *testing.T) { withOpenDB(func(db *DB, path string) { db.Update(func(tx *Tx) error { b, err := tx.CreateBucket([]byte("widgets")) -- cgit v1.2.3