File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import (
10
10
"testing"
11
11
12
12
"github.com/ipfs/go-cid"
13
- u "github.com/ipfs/go-ipfs-util"
13
+ ipfsutil "github.com/ipfs/go-ipfs-util"
14
14
"github.com/ipfs/go-unixfsnode"
15
15
dagpb "github.com/ipld/go-codec-dagpb"
16
16
"github.com/ipld/go-ipld-prime"
@@ -43,7 +43,7 @@ func TestBuildUnixFSFileWrappedInDirectory_Reference(t *testing.T) {
43
43
for _ , tc := range referenceTestCases {
44
44
t .Run (strconv .Itoa (tc .size ), func (t * testing.T ) {
45
45
buf := make ([]byte , tc .size )
46
- u .NewSeededRand (0xdeadbeef ).Read (buf )
46
+ ipfsutil .NewSeededRand (0xdeadbeef ).Read (buf )
47
47
r := bytes .NewReader (buf )
48
48
49
49
ls := cidlink .DefaultLinkSystem ()
Original file line number Diff line number Diff line change 7
7
"testing"
8
8
9
9
"github.com/ipfs/go-cid"
10
- u "github.com/ipfs/go-ipfs-util"
10
+ ipfsutil "github.com/ipfs/go-ipfs-util"
11
11
"github.com/ipfs/go-unixfsnode/file"
12
12
dagpb "github.com/ipld/go-codec-dagpb"
13
13
"github.com/ipld/go-ipld-prime"
@@ -50,7 +50,7 @@ func TestBuildUnixFSFile_Reference(t *testing.T) {
50
50
for _ , tc := range referenceTestCases {
51
51
t .Run (strconv .Itoa (tc .size ), func (t * testing.T ) {
52
52
buf := make ([]byte , tc .size )
53
- u .NewSeededRand (0xdeadbeef ).Read (buf )
53
+ ipfsutil .NewSeededRand (0xdeadbeef ).Read (buf )
54
54
r := bytes .NewReader (buf )
55
55
56
56
ls := cidlink .DefaultLinkSystem ()
@@ -74,7 +74,7 @@ func TestBuildUnixFSFile_Reference(t *testing.T) {
74
74
75
75
func TestUnixFSFileRoundtrip (t * testing.T ) {
76
76
buf := make ([]byte , 10 * 1024 * 1024 )
77
- u .NewSeededRand (0xdeadbeef ).Read (buf )
77
+ ipfsutil .NewSeededRand (0xdeadbeef ).Read (buf )
78
78
r := bytes .NewReader (buf )
79
79
80
80
ls := cidlink .DefaultLinkSystem ()
Original file line number Diff line number Diff line change 6
6
"io"
7
7
"testing"
8
8
9
- u "github.com/ipfs/go-ipfs-util"
9
+ ipfsutil "github.com/ipfs/go-ipfs-util"
10
10
"github.com/ipfs/go-unixfsnode/data/builder"
11
11
"github.com/ipfs/go-unixfsnode/file"
12
12
dagpb "github.com/ipld/go-codec-dagpb"
@@ -21,7 +21,7 @@ import (
21
21
22
22
func TestPartialFileAccess (t * testing.T ) {
23
23
buf := make ([]byte , 10 * 1024 * 1024 )
24
- u .NewSeededRand (0xdeadbeef ).Read (buf )
24
+ ipfsutil .NewSeededRand (0xdeadbeef ).Read (buf )
25
25
r := bytes .NewReader (buf )
26
26
27
27
ls := cidlink .DefaultLinkSystem ()
You can’t perform that action at this time.
0 commit comments