Somre more stuff for parsting
Working on metadata parsing Runnning into some Reader issues so I might create my own.
This commit is contained in:
+2
-1
@@ -31,7 +31,8 @@ func TestAppImageSquash(t *testing.T) {
|
||||
}
|
||||
}
|
||||
defer squashFil.Close()
|
||||
squash, err := NewSquashfs(squashFil)
|
||||
stat, _ := squashFil.Stat()
|
||||
squash, err := NewSquashfs(io.NewSectionReader(squashFil, 0, stat.Size()))
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user