1
0
Fork 1
mirror of https://github.com/vbatts/tar-split.git synced 2024-12-18 11:36:30 +00:00

tar/asm: remove useless test

The iso-8859-1 archive is already tested round trip, and this test did
not do anything really.
This commit is contained in:
Vincent Batts 2015-09-25 14:35:12 -04:00
parent 7e38cefd4b
commit 10250c25e0

View file

@ -10,39 +10,10 @@ import (
"io/ioutil"
"os"
"testing"
"unicode/utf8"
"github.com/vbatts/tar-split/archive/tar"
"github.com/vbatts/tar-split/tar/storage"
)
func TestISO8859(t *testing.T) {
fh, err := os.Open("./testdata/iso-8859.tar.gz")
if err != nil {
t.Fatal(err)
}
defer fh.Close()
gzRdr, err := gzip.NewReader(fh)
if err != nil {
t.Fatal(err)
}
defer gzRdr.Close()
tr := tar.NewReader(gzRdr)
for {
hdr, err := tr.Next()
if err != nil {
if err != io.EOF {
t.Error(err)
}
break
}
fmt.Println(hdr.Name)
if !utf8.ValidString(hdr.Name) {
fmt.Println([]byte(hdr.Name))
}
}
}
var entries = []struct {
Entry storage.Entry
Body []byte