aboutsummaryrefslogtreecommitdiff
path: root/hash/hash_test.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2019-01-15 23:40:19 +0100
committerDimitri Sokolyuk <demon@dim13.org>2019-01-15 23:40:19 +0100
commit7550eb651c14a35c42d3aedb11daa49e6fc2f63e (patch)
tree7ce9469859a75eb9e26fd29a7ae5bb5103d0b3b6 /hash/hash_test.go
parent4aaf55814f7ede26a1035e4837ce7aeeeb11d581 (diff)
adjust interface
Diffstat (limited to 'hash/hash_test.go')
-rw-r--r--hash/hash_test.go26
1 files changed, 0 insertions, 26 deletions
diff --git a/hash/hash_test.go b/hash/hash_test.go
deleted file mode 100644
index 0526146..0000000
--- a/hash/hash_test.go
+++ /dev/null
@@ -1,26 +0,0 @@
-package hash
-
-import (
- "encoding/binary"
- "os"
- "testing"
-)
-
-func TestOpen(t *testing.T) {
- fd, err := os.Open("testdata/aliases.db")
- if err != nil {
- t.Fatal(err)
- }
- defer fd.Close()
- var hdr HashHdr
- if err := binary.Read(fd, binary.BigEndian, &hdr); err != nil {
- t.Fatal(err)
- }
- if hdr.Magic != hashMagic {
- t.Errorf("got %x, want %x", hdr.Magic, hashMagic)
- }
- if hdr.Version != hashVersion {
- t.Errorf("got %x, want %x", hdr.Version, hashVersion)
- }
- t.Logf("%+v", hdr)
-}