aboutsummaryrefslogtreecommitdiff
path: root/transaction_test.go
diff options
context:
space:
mode:
authorBen Johnson <benbjohnson@yahoo.com>2014-01-14 13:01:02 -0700
committerBen Johnson <benbjohnson@yahoo.com>2014-01-14 13:01:02 -0700
commitcec7b942e7acd9190255716b37099240d6807e4f (patch)
tree5237583c9a9dde1de72bbc66ecfa81b2c0ff0870 /transaction_test.go
parentBegin Transaction.Cursor(). (diff)
downloaddedo-cec7b942e7acd9190255716b37099240d6807e4f.tar.gz
dedo-cec7b942e7acd9190255716b37099240d6807e4f.tar.xz
Add system buckets.
Diffstat (limited to 'transaction_test.go')
-rw-r--r--transaction_test.go22
1 files changed, 22 insertions, 0 deletions
diff --git a/transaction_test.go b/transaction_test.go
new file mode 100644
index 0000000..0b03d5e
--- /dev/null
+++ b/transaction_test.go
@@ -0,0 +1,22 @@
+package bolt
+
+import (
+ "testing"
+
+// "github.com/stretchr/testify/assert"
+)
+
+//--------------------------------------
+// Cursor()
+//--------------------------------------
+
+// Ensure that a read transaction can get a cursor.
+func TestTransactionCursor(t *testing.T) {
+ withOpenDB(func(db *DB, path string) {
+ /*
+ txn, _ := db.Transaction(false)
+ c := txn.Cursor()
+ assert.NotNil(t, c)
+ */
+ })
+}