Skip to content

Commit

Permalink
refactor: remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentsenta committed May 4, 2023
1 parent 09d279a commit 6c11770
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions tooling/car/fixture_test.go
Original file line number Diff line number Diff line change
@@ -1,28 +1,11 @@
package car

import (
"io/ioutil"
"os"
"testing"

"github.com/stretchr/testify/assert"
)

func loadFile(t *testing.T, carFilePath string) []byte {
file, err := os.Open(carFilePath)
if err != nil {
t.Fatalf("failed to open car file: %v", err)
}
defer file.Close()

fileBytes, err := ioutil.ReadAll(file)
if err != nil {
t.Fatalf("failed to read car file: %v", err)
}

return fileBytes
}

func TestGetNodes(t *testing.T) {
f := MustOpenUnixfsCar("./_fixtures/dag.car")

Expand Down

0 comments on commit 6c11770

Please sign in to comment.