Testing better large file support

This commit is contained in:
Caleb Gardner
2023-04-17 07:51:08 -05:00
parent 55a25c9d45
commit 6931075e7e
2 changed files with 96 additions and 93 deletions
+2 -7
View File
@@ -106,7 +106,6 @@ func BenchmarkRace(b *testing.B) {
}
func TestExtractQuick(t *testing.T) {
//First, setup everything and extract the archive using the library and unsquashfs
// tmpDir := b.TempDir()
@@ -123,9 +122,7 @@ func TestExtractQuick(t *testing.T) {
if err != nil {
t.Fatal(err)
}
op := squashfs.DefaultOptions()
op.Verbose = true
err = rdr.ExtractWithOptions(libPath, op)
err = rdr.ExtractWithOptions(libPath, &squashfs.ExtractionOptions{Verbose: true})
if err != nil {
t.Fatal(err)
}
@@ -176,9 +173,7 @@ func TestSingleFile(t *testing.T) {
if err != nil {
t.Fatal(err)
}
op := squashfs.DefaultOptions()
op.Verbose = true
err = f.(*squashfs.File).ExtractWithOptions("testing", op)
err = f.(*squashfs.File).ExtractWithOptions("testing", &squashfs.ExtractionOptions{Verbose: true})
if err != nil {
t.Fatal(err)
}