From 10250c25e0cb4b64f89280d0dde72feff25ef7ab Mon Sep 17 00:00:00 2001 From: Vincent Batts Date: Fri, 25 Sep 2015 14:35:12 -0400 Subject: [PATCH] tar/asm: remove useless test The iso-8859-1 archive is already tested round trip, and this test did not do anything really. --- tar/asm/assemble_test.go | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/tar/asm/assemble_test.go b/tar/asm/assemble_test.go index 29b7a17..3d0c99c 100644 --- a/tar/asm/assemble_test.go +++ b/tar/asm/assemble_test.go @@ -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