aboutsummaryrefslogtreecommitdiff
path: root/internal/hash/hash_test.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <sokolyuk@gmail.com>2021-11-22 13:48:19 +0100
committerDimitri Sokolyuk <sokolyuk@gmail.com>2021-11-22 13:48:19 +0100
commit1f1942ec0a4e55b3488a1771475994253bfe9b9e (patch)
tree0963f3b306cf5fdb7846c88102a18c462d096387 /internal/hash/hash_test.go
parent172fe8ad99288d4a4976089955a75bd28f5da764 (diff)
Move
Diffstat (limited to 'internal/hash/hash_test.go')
-rw-r--r--internal/hash/hash_test.go26
1 files changed, 0 insertions, 26 deletions
diff --git a/internal/hash/hash_test.go b/internal/hash/hash_test.go
deleted file mode 100644
index da3a4a6..0000000
--- a/internal/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 != Magic {
- t.Errorf("got %x, want %x", hdr.Magic, Magic)
- }
- if hdr.Version != Version {
- t.Errorf("got %x, want %x", hdr.Version, Version)
- }
- t.Logf("%+v", hdr)
-}