aboutsummaryrefslogtreecommitdiff
path: root/zsig/zsig_test.go
diff options
context:
space:
mode:
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)
- }
- })
- }
-}