diff options
author | Ben Johnson <benbjohnson@yahoo.com> | 2014-05-05 07:56:54 -0600 |
---|---|---|
committer | Ben Johnson <benbjohnson@yahoo.com> | 2014-05-05 07:56:54 -0600 |
commit | c3903d38a10fda3c9a366d62705e06ddc558eb2d (patch) | |
tree | 504e0dcfc35536f7f9023aca59895c653bf68bee /meta_test.go | |
parent | Merge pull request #152 from benbjohnson/remove-bolt-set (diff) | |
download | dedo-c3903d38a10fda3c9a366d62705e06ddc558eb2d.tar.gz dedo-c3903d38a10fda3c9a366d62705e06ddc558eb2d.tar.xz |
Consolidate code for clarity.
This commit consolidates some of the smaller files into some of the larger files.
The smaller files cluttered the file tree and made it harder to see the logical
groupings of structs.
Diffstat (limited to 'meta_test.go')
-rw-r--r-- | meta_test.go | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/meta_test.go b/meta_test.go deleted file mode 100644 index 1a2d6b5..0000000 --- a/meta_test.go +++ /dev/null @@ -1,18 +0,0 @@ -package bolt - -import ( - "github.com/stretchr/testify/assert" - "testing" -) - -// Ensure that meta with bad magic is invalid. -func TestMeta_validate_magic(t *testing.T) { - m := &meta{magic: 0x01234567} - assert.Equal(t, m.validate(), ErrInvalid) -} - -// Ensure that meta with a bad version is invalid. -func TestMeta_validate_version(t *testing.T) { - m := &meta{magic: magic, version: 200} - assert.Equal(t, m.validate(), ErrVersionMismatch) -} |