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:
Caleb Gardner
2020-11-10 11:25:56 -06:00
parent 81299c3872
commit 1d641259b2
6 changed files with 124 additions and 33 deletions
+2 -1
View File
@@ -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)
}