mirror of https://github.com/etcd-io/bbolt.git
23 lines
400 B
Go
23 lines
400 B
Go
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)
|
|
*/
|
|
})
|
|
}
|