mirror of
https://github.com/vbatts/tar-split.git
synced 2024-11-15 12:58:38 +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:
parent
7e38cefd4b
commit
10250c25e0
1 changed files with 0 additions and 29 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue