diff --git a/filesystem/squashfs/const_internal_test.go b/filesystem/squashfs/const_internal_test.go index cb74112..008c28d 100644 --- a/filesystem/squashfs/const_internal_test.go +++ b/filesystem/squashfs/const_internal_test.go @@ -199,12 +199,12 @@ func testGetFilesystem(f fs.File) (*FileSystem, []byte, error) { return testFs, b, nil } -func testGetInodeMetabytes() (inodeBytes []byte, inodesStart uint64, err error) { +func testGetInodeMetabytes() (inodeBytes []byte, err error) { testFs, b, err := testGetFilesystem(nil) if err != nil { - return nil, 0, err + return nil, err } - return b[testFs.superblock.inodeTableStart+2:], testFs.superblock.inodeTableStart, nil + return b[testFs.superblock.inodeTableStart+2:], nil } //nolint:deadcode // we need these references in the future diff --git a/filesystem/squashfs/inode_internal_test.go b/filesystem/squashfs/inode_internal_test.go index 75bb1aa..5bef3f9 100644 --- a/filesystem/squashfs/inode_internal_test.go +++ b/filesystem/squashfs/inode_internal_test.go @@ -69,7 +69,7 @@ func TestInodeSize(t *testing.T) { } func TestInodeHeader(t *testing.T) { - b, _, err := testGetInodeMetabytes() + b, err := testGetInodeMetabytes() if err != nil { t.Fatal(err) } @@ -142,7 +142,7 @@ func TestBlockData(t *testing.T) { func TestBasicDirectory(t *testing.T) { dir := testBasicDirectory - b, _, err := testGetInodeMetabytes() + b, err := testGetInodeMetabytes() if err != nil { t.Fatal(err) } @@ -203,7 +203,7 @@ func TestExtendedDirectory(t *testing.T) { func TestBasicFile(t *testing.T) { f := testBasicFile - b, _, err := testGetInodeMetabytes() + b, err := testGetInodeMetabytes() if err != nil { t.Fatal(err) } @@ -279,7 +279,7 @@ func TestBasicFile(t *testing.T) { func TestExtendedFile(t *testing.T) { fd := testExtendedFile f := &fd - b, _, err := testGetInodeMetabytes() + b, err := testGetInodeMetabytes() if err != nil { t.Fatal(err) } @@ -332,7 +332,7 @@ func TestExtendedFile(t *testing.T) { func TestBasicSymlink(t *testing.T) { s := testBasicSymlink - b, _, err := testGetInodeMetabytes() + b, err := testGetInodeMetabytes() if err != nil { t.Fatal(err) } @@ -430,7 +430,7 @@ func TestExtendedIPC(t *testing.T) { } func TestInode(t *testing.T) { - b, _, err := testGetInodeMetabytes() + b, err := testGetInodeMetabytes() if err != nil { t.Fatal(err) } diff --git a/filesystem/squashfs/squashfs_internal_test.go b/filesystem/squashfs/squashfs_internal_test.go index 89db0c3..3e16a50 100644 --- a/filesystem/squashfs/squashfs_internal_test.go +++ b/filesystem/squashfs/squashfs_internal_test.go @@ -68,7 +68,7 @@ func TestValidateBlocksize(t *testing.T) { func TestParseXAttrsTable(t *testing.T) { // parseXattrsTable(bUIDXattr, bIndex []byte, offset uint64, c compressor) (*xAttrTable, error) { - b, _, err := testGetInodeMetabytes() + b, err := testGetInodeMetabytes() if err != nil { t.Fatalf("error getting metadata bytes: %v", err) }