aboutsummaryrefslogtreecommitdiff
path: root/cursor_test.go
diff options
context:
space:
mode:
authorBen Johnson <benbjohnson@yahoo.com>2014-04-21 07:24:48 -0600
committerBen Johnson <benbjohnson@yahoo.com>2014-04-21 07:24:48 -0600
commitafe8123d91e9b7e492fec95fad537f37d911f5d0 (patch)
tree9c59a10b225461923f594e8e9c8b374f0df09136 /cursor_test.go
parentMerge pull request #135 from benbjohnson/bench (diff)
parentall tests pass (diff)
downloaddedo-afe8123d91e9b7e492fec95fad537f37d911f5d0.tar.gz
dedo-afe8123d91e9b7e492fec95fad537f37d911f5d0.tar.xz
Merge pull request #134 from Shopify/c_cursor
C cursor
Diffstat (limited to 'cursor_test.go')
-rw-r--r--cursor_test.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/cursor_test.go b/cursor_test.go
index 5dd178e..23b3a8e 100644
--- a/cursor_test.go
+++ b/cursor_test.go
@@ -101,7 +101,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"))
@@ -204,7 +204,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.
@@ -239,7 +239,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.
@@ -274,7 +274,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"))
@@ -301,7 +301,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"))