Skip to content

Commit 8a847eb

Browse files
authored
conform imports to schema defined in CONTRIBUTING.md (#150)
* use multi-import grouping * terminate all newlines in import groups * group go-fil-markets, as per style guide * replace go-filecoin with go-fil-markets in CONTRIBUTING.md
1 parent a4b8be5 commit 8a847eb

File tree

8 files changed

+47
-31
lines changed

8 files changed

+47
-31
lines changed

pieceio/mocks/CarIO.go

Lines changed: 10 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pieceio/mocks/PieceIO.go

Lines changed: 10 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pieceio/mocks/PreparedCar.go

Lines changed: 5 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pieceio/mocks/ReadStore.go

Lines changed: 5 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pieceio/mocks/SectorCalculator.go

Lines changed: 5 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pieceio/mocks/WriteStore.go

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pieceio/pieceio_test.go

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,11 @@ import (
44
"bytes"
55
"context"
66
"fmt"
7-
87
"io"
98
"testing"
109

11-
"github.com/filecoin-project/go-fil-markets/filestore"
12-
fsmocks "github.com/filecoin-project/go-fil-markets/filestore/mocks"
13-
"github.com/filecoin-project/go-fil-markets/pieceio"
14-
"github.com/filecoin-project/go-fil-markets/pieceio/cario"
15-
pmocks "github.com/filecoin-project/go-fil-markets/pieceio/mocks"
16-
1710
"github.com/filecoin-project/go-sectorbuilder"
1811
"github.com/filecoin-project/specs-actors/actors/abi"
19-
2012
"github.com/ipfs/go-cid"
2113
dag "github.com/ipfs/go-merkledag"
2214
dstest "github.com/ipfs/go-merkledag/test"
@@ -25,6 +17,12 @@ import (
2517
"github.com/ipld/go-ipld-prime/traversal/selector/builder"
2618
"github.com/stretchr/testify/mock"
2719
"github.com/stretchr/testify/require"
20+
21+
"github.com/filecoin-project/go-fil-markets/filestore"
22+
fsmocks "github.com/filecoin-project/go-fil-markets/filestore/mocks"
23+
"github.com/filecoin-project/go-fil-markets/pieceio"
24+
"github.com/filecoin-project/go-fil-markets/pieceio/cario"
25+
pmocks "github.com/filecoin-project/go-fil-markets/pieceio/mocks"
2826
)
2927

3028
func Test_ThereAndBackAgain(t *testing.T) {

pieceio/types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ package pieceio
33
import (
44
"io"
55

6-
"github.com/filecoin-project/go-fil-markets/filestore"
76
"github.com/filecoin-project/specs-actors/actors/abi"
8-
97
blocks "github.com/ipfs/go-block-format"
108
"github.com/ipfs/go-cid"
119
"github.com/ipld/go-ipld-prime"
10+
11+
"github.com/filecoin-project/go-fil-markets/filestore"
1212
)
1313

1414
type WriteStore interface {

0 commit comments

Comments
 (0)