diff options
author | Ben Johnson <benbjohnson@yahoo.com> | 2014-01-14 13:01:02 -0700 |
---|---|---|
committer | Ben Johnson <benbjohnson@yahoo.com> | 2014-01-14 13:01:02 -0700 |
commit | cec7b942e7acd9190255716b37099240d6807e4f (patch) | |
tree | 5237583c9a9dde1de72bbc66ecfa81b2c0ff0870 /transaction_test.go | |
parent | Begin Transaction.Cursor(). (diff) | |
download | dedo-cec7b942e7acd9190255716b37099240d6807e4f.tar.gz dedo-cec7b942e7acd9190255716b37099240d6807e4f.tar.xz |
Add system buckets.
Diffstat (limited to 'transaction_test.go')
-rw-r--r-- | transaction_test.go | 22 |
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) + */ + }) +} |