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.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)
+ })
+ }
+}