aboutsummaryrefslogtreecommitdiff
path: root/tests/dedo.go
diff options
context:
space:
mode:
Diffstat (limited to 'tests/dedo.go')
-rw-r--r--tests/dedo.go20
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/dedo.go b/tests/dedo.go
index 0c98217..0d86055 100644
--- a/tests/dedo.go
+++ b/tests/dedo.go
@@ -4732,7 +4732,7 @@ func tempfile() string {
}
// mustContainKeys checks that a bucket contains a given set of keys.
-func mustContainKeys(b *Bucket, m map[string]string) {
+func mustContainKeys(b *bucketT, m map[string]string) {
found := make(map[string]string)
err := b.ForEach(func(k, _ []byte) error {
found[string(k)] = ""
@@ -5012,7 +5012,7 @@ func puts(
func TestNode_put(t *testing.T) {
n := &node{
inodes: make(inodes, 0),
- bucket: &Bucket{
+ bucket: &bucketT{
tx: &transactionT{
meta: &meta{
pgid: 1,
@@ -5101,7 +5101,7 @@ func TestNode_write_LeafPage(t *testing.T) {
n := &node{
isLeaf: true,
inodes: make(inodes, 0),
- bucket: &Bucket{
+ bucket: &bucketT{
tx: &transactionT{
db: &DB{},
meta: &meta{
@@ -5149,7 +5149,7 @@ func TestNode_split(t *testing.T) {
// Create a node.
n := &node{
inodes: make(inodes, 0),
- bucket: &Bucket{
+ bucket: &bucketT{
tx: &transactionT{
db: &DB{},
meta: &meta{
@@ -5185,7 +5185,7 @@ func TestNode_split_MinKeys(t *testing.T) {
// Create a node.
n := &node{
inodes: make(inodes, 0),
- bucket: &Bucket{
+ bucket: &bucketT{
tx: &transactionT{
db: &DB{},
meta: &meta{
@@ -5210,7 +5210,7 @@ func TestNode_split_SinglePage(t *testing.T) {
// Create a node.
n := &node{
inodes: make(inodes, 0),
- bucket: &Bucket{
+ bucket: &bucketT{
tx: &transactionT{
db: &DB{},
meta: &meta{
@@ -6297,7 +6297,7 @@ func TestTx_ForEach_NoError(t *testing.T) {
t.Fatal(err)
}
- err = tx.ForEach(func(name []byte, b *Bucket) error {
+ err = tx.ForEach(func(name []byte, b *bucketT) error {
return nil
})
if err != nil {
@@ -6329,7 +6329,7 @@ func TestTx_ForEach_WithError(t *testing.T) {
}
marker := errors.New("marker")
- err = tx.ForEach(func(name []byte, b *Bucket) error {
+ err = tx.ForEach(func(name []byte, b *bucketT) error {
return marker
})
if err != marker {
@@ -6580,7 +6580,7 @@ func (db *WDB2) Close() error {
return db.DB.Close()
}
-func fillBucket(b *Bucket, prefix []byte) error {
+func fillBucket(b *bucketT, prefix []byte) error {
n := 10 + rand.Intn(50)
for i := 0; i < n; i++ {
v := make([]byte, 10*(1+rand.Intn(4)))
@@ -6616,7 +6616,7 @@ func fillBucket(b *Bucket, prefix []byte) error {
return nil
}
-func walkBucket(parent *Bucket, k []byte, v []byte, w io.Writer) error {
+func walkBucket(parent *bucketT, k []byte, v []byte, w io.Writer) error {
_, err := fmt.Fprintf(w, "%d:%x=%x\n", parent.ref.sequence, k, v)
if err != nil {
return err