aboutsummaryrefslogtreecommitdiff
path: root/zsig/zsig_test.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2017-04-24 23:42:59 +0200
committerDimitri Sokolyuk <demon@dim13.org>2017-04-24 23:42:59 +0200
commitcfd79229fbc13103af6b30a45deb3397639a1b27 (patch)
tree4d8d61cb199469e9ffb42a02881fb0c318a93d71 /zsig/zsig_test.go
parent5ded3eaa1f1b50da4758cb1c1d9b668e4f7c1719 (diff)
add zsig
Diffstat (limited to 'zsig/zsig_test.go')
-rw-r--r--zsig/zsig_test.go31
1 files changed, 31 insertions, 0 deletions
diff --git a/zsig/zsig_test.go b/zsig/zsig_test.go
new file mode 100644
index 0000000..1fb6b06
--- /dev/null
+++ b/zsig/zsig_test.go
@@ -0,0 +1,31 @@
+package zsig
+
+import (
+ "os"
+ "path"
+ "testing"
+)
+
+func TestZsig(t *testing.T) {
+ testCases := []string{
+ "isc.txt.gz.sig",
+ "go-1.8.tgz",
+ }
+ 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)
+ })
+ }
+}