aboutsummaryrefslogtreecommitdiff
path: root/transaction_test.go
diff options
context:
space:
mode:
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)
+ */
+ })
+}