aboutsummaryrefslogtreecommitdiff
path: root/zsig/zsig_test.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2017-07-26 00:05:21 +0200
committerDimitri Sokolyuk <demon@dim13.org>2017-07-26 00:05:21 +0200
commitfaa7739dcde1a1a57df8991a193975eb52aa4df2 (patch)
treeab28199c455442c16c20adae01c183d3f2baad95 /zsig/zsig_test.go
parent15fe28c9af4a69d5fb5188c3cbeadae31a9c891f (diff)
...
Diffstat (limited to 'zsig/zsig_test.go')
-rw-r--r--zsig/zsig_test.go35
1 files changed, 0 insertions, 35 deletions
diff --git a/zsig/zsig_test.go b/zsig/zsig_test.go
deleted file mode 100644
index b226c15..0000000
--- a/zsig/zsig_test.go
+++ /dev/null
@@ -1,35 +0,0 @@
-package zsig
-
-import (
- "crypto/sha512"
- "os"
- "path"
- "testing"
-)
-
-func TestZsig(t *testing.T) {
- testCases := []string{
- "rand.gz.sig",
- }
- for _, tc := range testCases {
- t.Run(tc, func(t *testing.T) {
- fname := path.Join("testdata", tc)
- fd, err := os.Open(fname)
- if err != nil {
- t.Fatal(err)
- }
- defer fd.Close()
-
- z, err := NewReader(fd)
- if err != nil {
- t.Error(err)
- }
- t.Log(z.header)
-
- h := sha512.New512_256()
- for block := range Sum(z, BlockSize, h) {
- t.Logf("%x", block)
- }
- })
- }
-}