diff options
author | Ben Johnson <benbjohnson@yahoo.com> | 2014-04-07 16:24:51 -0600 |
---|---|---|
committer | Ben Johnson <benbjohnson@yahoo.com> | 2014-04-11 12:36:54 -0600 |
commit | 698b07b074dc554578ecddd138972702f46d0879 (patch) | |
tree | f171f10bd4f17986cb9120d71263995b28273a7a /page_test.go | |
parent | Update cursor benchmark. (diff) | |
download | dedo-698b07b074dc554578ecddd138972702f46d0879.tar.gz dedo-698b07b074dc554578ecddd138972702f46d0879.tar.xz |
Add nested buckets.
This commit adds the ability to create buckets inside of other buckets.
It also replaces the buckets page with a root bucket.
Fixes #56.
Diffstat (limited to 'page_test.go')
-rw-r--r-- | page_test.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/page_test.go b/page_test.go index 976af0d..be90096 100644 --- a/page_test.go +++ b/page_test.go @@ -6,16 +6,15 @@ import ( ) // Ensure that the page type can be returned in human readable format. -func TestPageTyp(t *testing.T) { +func TestPage_typ(t *testing.T) { assert.Equal(t, (&page{flags: branchPageFlag}).typ(), "branch") assert.Equal(t, (&page{flags: leafPageFlag}).typ(), "leaf") assert.Equal(t, (&page{flags: metaPageFlag}).typ(), "meta") - assert.Equal(t, (&page{flags: bucketsPageFlag}).typ(), "buckets") assert.Equal(t, (&page{flags: freelistPageFlag}).typ(), "freelist") assert.Equal(t, (&page{flags: 20000}).typ(), "unknown<4e20>") } // Ensure that the hexdump debugging function doesn't blow up. -func TestPageDump(t *testing.T) { +func TestPage_dump(t *testing.T) { (&page{id: 256}).hexdump(16) } |