Commit 3fed3756 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 2dc1e2e0
...@@ -83,18 +83,18 @@ func TestBTree(t *testing.T) { ...@@ -83,18 +83,18 @@ func TestBTree(t *testing.T) {
obj, ok := xobj.(bmapping) obj, ok := xobj.(bmapping)
if !ok { if !ok {
t.Fatalf("%s: got %T; want Bucket|BTree", tt.oid, xobj) t.Fatalf("%s: got %T; want LOBucket|LOBTree", tt.oid, xobj)
} }
want := "" want := ""
switch tt.kind { switch tt.kind {
case kindBucket: case kindBucket:
if _, ok = obj.(*LOBucket); !ok { if _, ok = obj.(*LOBucket); !ok {
want = "Bucket" want = "LOBucket"
} }
case kindBTree: case kindBTree:
if _, ok = obj.(*LOBTree); !ok { if _, ok = obj.(*LOBTree); !ok {
want = "BTree" want = "LOBTree"
} }
default: default:
panic(0) panic(0)
...@@ -134,7 +134,7 @@ func TestBTree(t *testing.T) { ...@@ -134,7 +134,7 @@ func TestBTree(t *testing.T) {
} }
B3, ok := xB3.(*LOBTree) B3, ok := xB3.(*LOBTree)
if !ok { if !ok {
t.Fatalf("B3: %v; got %T; want BTree", B3_oid, xB3) t.Fatalf("B3: %v; got %T; want LOBTree", B3_oid, xB3)
} }
for i := int64(0); i <= B3_maxkey; i++ { for i := int64(0); i <= B3_maxkey; i++ {
...@@ -177,5 +177,7 @@ func TestBTree(t *testing.T) { ...@@ -177,5 +177,7 @@ func TestBTree(t *testing.T) {
return firstbucket return firstbucket
} }
// XXX verify Entryv ?
verifyFirstBucket(B3) verifyFirstBucket(B3)
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment