From cec7b942e7acd9190255716b37099240d6807e4f Mon Sep 17 00:00:00 2001 From: Ben Johnson Date: Tue, 14 Jan 2014 13:01:02 -0700 Subject: Add system buckets. --- transaction_test.go | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 transaction_test.go (limited to 'transaction_test.go') 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) + */ + }) +} -- cgit v1.2.3