mirror of
https://github.com/anyproto/anytype-heart.git
synced 2025-06-10 18:10:49 +09:00
Fix imports
This commit is contained in:
parent
35ba1b5c7f
commit
af9a14de2c
18 changed files with 32 additions and 30 deletions
|
@ -6,10 +6,9 @@ import (
|
|||
|
||||
"github.com/globalsign/mgo/bson"
|
||||
"github.com/gogo/protobuf/types"
|
||||
"go.uber.org/mock/gomock"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
"go.uber.org/mock/gomock"
|
||||
|
||||
"github.com/anyproto/anytype-heart/core/block/editor/converter"
|
||||
"github.com/anyproto/anytype-heart/core/block/editor/smartblock/smarttest"
|
||||
|
|
|
@ -10,8 +10,11 @@ import (
|
|||
"go.uber.org/mock/gomock"
|
||||
|
||||
"github.com/anyproto/anytype-heart/core/block/editor/state"
|
||||
"github.com/anyproto/anytype-heart/core/block/restriction"
|
||||
"github.com/anyproto/anytype-heart/core/block/restriction/mock_restriction"
|
||||
"github.com/anyproto/anytype-heart/core/block/simple"
|
||||
"github.com/anyproto/anytype-heart/core/event/mock_event"
|
||||
"github.com/anyproto/anytype-heart/core/relation/mock_relation"
|
||||
"github.com/anyproto/anytype-heart/core/session"
|
||||
"github.com/anyproto/anytype-heart/pb"
|
||||
"github.com/anyproto/anytype-heart/pkg/lib/bundle"
|
||||
|
@ -22,12 +25,10 @@ import (
|
|||
"github.com/anyproto/anytype-heart/util/pbtypes"
|
||||
"github.com/anyproto/anytype-heart/util/testMock"
|
||||
"github.com/anyproto/anytype-heart/util/testMock/mockSource"
|
||||
"github.com/anyproto/anytype-heart/core/block/restriction"
|
||||
"github.com/anyproto/anytype-heart/core/block/restriction/mock_restriction"
|
||||
|
||||
_ "github.com/anyproto/anytype-heart/core/block/simple/base"
|
||||
_ "github.com/anyproto/anytype-heart/core/block/simple/link"
|
||||
_ "github.com/anyproto/anytype-heart/core/block/simple/text"
|
||||
"github.com/anyproto/anytype-heart/core/relation/mock_relation"
|
||||
)
|
||||
|
||||
func TestSmartBlock_Init(t *testing.T) {
|
||||
|
|
|
@ -3,6 +3,7 @@ package editor
|
|||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/gogo/protobuf/types"
|
||||
"github.com/stretchr/testify/require"
|
||||
"go.uber.org/mock/gomock"
|
||||
|
||||
|
@ -16,7 +17,6 @@ import (
|
|||
"github.com/anyproto/anytype-heart/pkg/lib/pb/model"
|
||||
"github.com/anyproto/anytype-heart/util/pbtypes"
|
||||
"github.com/anyproto/anytype-heart/util/testMock"
|
||||
"github.com/gogo/protobuf/types"
|
||||
)
|
||||
|
||||
func NewTemplateTest(t *testing.T, ctrl *gomock.Controller, templateName string) (*Template, error) {
|
||||
|
|
|
@ -5,12 +5,11 @@ package mock_converter
|
|||
import (
|
||||
context "context"
|
||||
|
||||
converter "github.com/anyproto/anytype-heart/core/block/import/converter"
|
||||
mock "github.com/stretchr/testify/mock"
|
||||
|
||||
pb "github.com/anyproto/anytype-heart/pb"
|
||||
|
||||
converter "github.com/anyproto/anytype-heart/core/block/import/converter"
|
||||
process "github.com/anyproto/anytype-heart/core/block/process"
|
||||
pb "github.com/anyproto/anytype-heart/pb"
|
||||
)
|
||||
|
||||
// MockConverter is an autogenerated mock type for the Converter type
|
||||
|
|
|
@ -6,11 +6,11 @@ import (
|
|||
"time"
|
||||
|
||||
"github.com/anyproto/any-sync/commonspace/object/tree/treestorage"
|
||||
"github.com/anyproto/anytype-heart/core/block/uniquekey"
|
||||
"github.com/gogo/protobuf/types"
|
||||
|
||||
"github.com/anyproto/anytype-heart/core/block"
|
||||
"github.com/anyproto/anytype-heart/core/block/import/converter"
|
||||
"github.com/anyproto/anytype-heart/core/block/uniquekey"
|
||||
"github.com/anyproto/anytype-heart/pkg/lib/bundle"
|
||||
"github.com/anyproto/anytype-heart/pkg/lib/core"
|
||||
sb "github.com/anyproto/anytype-heart/pkg/lib/core/smartblock"
|
||||
|
|
|
@ -1,11 +1,13 @@
|
|||
package restriction
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
|
||||
"github.com/anyproto/anytype-heart/pkg/lib/bundle"
|
||||
"github.com/anyproto/anytype-heart/pkg/lib/core/smartblock"
|
||||
"github.com/anyproto/anytype-heart/pkg/lib/pb/model"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestService_DataviewRestrictions(t *testing.T) {
|
||||
|
|
|
@ -2,15 +2,17 @@ package restriction
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"github.com/anyproto/any-sync/app"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/anyproto/anytype-heart/core/block/uniquekey"
|
||||
"github.com/anyproto/anytype-heart/pkg/lib/bundle"
|
||||
"github.com/anyproto/anytype-heart/pkg/lib/core/smartblock"
|
||||
"github.com/anyproto/anytype-heart/pkg/lib/localstore/objectstore/mock_objectstore"
|
||||
"github.com/anyproto/anytype-heart/pkg/lib/pb/model"
|
||||
"github.com/anyproto/anytype-heart/space/typeprovider/mock_typeprovider"
|
||||
"github.com/stretchr/testify/require"
|
||||
"testing"
|
||||
)
|
||||
|
||||
type fixture struct {
|
||||
|
|
|
@ -6,9 +6,8 @@ import (
|
|||
app "github.com/anyproto/any-sync/app"
|
||||
mock "github.com/stretchr/testify/mock"
|
||||
|
||||
model "github.com/anyproto/anytype-heart/pkg/lib/pb/model"
|
||||
|
||||
restriction "github.com/anyproto/anytype-heart/core/block/restriction"
|
||||
model "github.com/anyproto/anytype-heart/pkg/lib/pb/model"
|
||||
)
|
||||
|
||||
// MockService is an autogenerated mock type for the Service type
|
||||
|
|
|
@ -3,10 +3,11 @@ package restriction
|
|||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/anyproto/anytype-heart/pkg/lib/bundle"
|
||||
"github.com/anyproto/anytype-heart/pkg/lib/pb/model"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/mock"
|
||||
|
||||
"github.com/anyproto/anytype-heart/pkg/lib/bundle"
|
||||
"github.com/anyproto/anytype-heart/pkg/lib/pb/model"
|
||||
)
|
||||
|
||||
// TODO Use constructors instead for initializing restrictionHolder structures by hand. See givenObjectType and givenRelation
|
||||
|
|
|
@ -5,8 +5,8 @@ import (
|
|||
"fmt"
|
||||
|
||||
"github.com/anyproto/any-sync/app"
|
||||
"github.com/anyproto/anytype-heart/core/block/uniquekey"
|
||||
|
||||
"github.com/anyproto/anytype-heart/core/block/uniquekey"
|
||||
"github.com/anyproto/anytype-heart/pkg/lib/bundle"
|
||||
"github.com/anyproto/anytype-heart/pkg/lib/localstore/objectstore"
|
||||
"github.com/anyproto/anytype-heart/pkg/lib/logging"
|
||||
|
|
|
@ -11,11 +11,11 @@ import (
|
|||
"github.com/anyproto/any-sync/commonspace/object/tree/objecttree"
|
||||
"github.com/anyproto/any-sync/commonspace/object/tree/synctree/updatelistener"
|
||||
"github.com/anyproto/any-sync/commonspace/objecttreebuilder"
|
||||
"github.com/anyproto/anytype-heart/core/relation"
|
||||
"github.com/gogo/protobuf/types"
|
||||
|
||||
"github.com/anyproto/anytype-heart/core/block/editor/state"
|
||||
"github.com/anyproto/anytype-heart/core/files"
|
||||
"github.com/anyproto/anytype-heart/core/relation"
|
||||
"github.com/anyproto/anytype-heart/pkg/lib/core"
|
||||
"github.com/anyproto/anytype-heart/pkg/lib/core/smartblock"
|
||||
"github.com/anyproto/anytype-heart/pkg/lib/localstore/addr"
|
||||
|
|
|
@ -4,7 +4,6 @@ package mock_event
|
|||
|
||||
import (
|
||||
app "github.com/anyproto/any-sync/app"
|
||||
|
||||
mock "github.com/stretchr/testify/mock"
|
||||
|
||||
pb "github.com/anyproto/anytype-heart/pb"
|
||||
|
|
|
@ -15,7 +15,6 @@ import (
|
|||
"github.com/anyproto/any-sync/app"
|
||||
"github.com/anyproto/any-sync/commonfile/fileservice"
|
||||
"github.com/anyproto/any-sync/commonspace/syncstatus"
|
||||
"github.com/anyproto/anytype-heart/pkg/lib/core"
|
||||
"github.com/gogo/protobuf/proto"
|
||||
uio "github.com/ipfs/boxo/ipld/unixfs/io"
|
||||
"github.com/ipfs/go-cid"
|
||||
|
@ -29,6 +28,7 @@ import (
|
|||
"github.com/anyproto/anytype-heart/core/filestorage/filesync"
|
||||
"github.com/anyproto/anytype-heart/pb"
|
||||
"github.com/anyproto/anytype-heart/pkg/lib/bundle"
|
||||
"github.com/anyproto/anytype-heart/pkg/lib/core"
|
||||
"github.com/anyproto/anytype-heart/pkg/lib/crypto/symmetric"
|
||||
"github.com/anyproto/anytype-heart/pkg/lib/crypto/symmetric/cfb"
|
||||
"github.com/anyproto/anytype-heart/pkg/lib/crypto/symmetric/gcm"
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
package relationutils
|
||||
|
||||
import (
|
||||
"github.com/anyproto/anytype-heart/core/block/uniquekey"
|
||||
"github.com/gogo/protobuf/types"
|
||||
|
||||
"github.com/anyproto/anytype-heart/core/block/uniquekey"
|
||||
"github.com/anyproto/anytype-heart/pkg/lib/bundle"
|
||||
"github.com/anyproto/anytype-heart/pkg/lib/localstore/addr"
|
||||
"github.com/anyproto/anytype-heart/pkg/lib/pb/model"
|
||||
|
|
|
@ -5,9 +5,7 @@ package mock_wallet
|
|||
import (
|
||||
app "github.com/anyproto/any-sync/app"
|
||||
accountdata "github.com/anyproto/any-sync/commonspace/object/accountdata"
|
||||
|
||||
crypto "github.com/anyproto/any-sync/util/crypto"
|
||||
|
||||
mock "github.com/stretchr/testify/mock"
|
||||
)
|
||||
|
||||
|
|
|
@ -4,11 +4,11 @@ import (
|
|||
"fmt"
|
||||
"strings"
|
||||
|
||||
"github.com/anyproto/anytype-heart/pkg/lib/localstore/addr"
|
||||
"github.com/gogo/protobuf/jsonpb"
|
||||
"github.com/gogo/protobuf/proto"
|
||||
"github.com/gogo/protobuf/types"
|
||||
|
||||
"github.com/anyproto/anytype-heart/pkg/lib/localstore/addr"
|
||||
"github.com/anyproto/anytype-heart/pkg/lib/pb/model"
|
||||
"github.com/anyproto/anytype-heart/util/slice"
|
||||
)
|
||||
|
|
|
@ -9,11 +9,12 @@ import (
|
|||
reflect "reflect"
|
||||
|
||||
app "github.com/anyproto/any-sync/app"
|
||||
types "github.com/gogo/protobuf/types"
|
||||
gomock "go.uber.org/mock/gomock"
|
||||
|
||||
state "github.com/anyproto/anytype-heart/core/block/editor/state"
|
||||
pb "github.com/anyproto/anytype-heart/pb"
|
||||
smartblock "github.com/anyproto/anytype-heart/pkg/lib/core/smartblock"
|
||||
types "github.com/gogo/protobuf/types"
|
||||
gomock "go.uber.org/mock/gomock"
|
||||
)
|
||||
|
||||
// MockService is a mock of Service interface.
|
||||
|
|
|
@ -10,12 +10,13 @@ import (
|
|||
|
||||
app "github.com/anyproto/any-sync/app"
|
||||
coordinatorproto "github.com/anyproto/any-sync/coordinator/coordinatorproto"
|
||||
types "github.com/gogo/protobuf/types"
|
||||
gomock "go.uber.org/mock/gomock"
|
||||
|
||||
smartblock "github.com/anyproto/anytype-heart/pkg/lib/core/smartblock"
|
||||
database "github.com/anyproto/anytype-heart/pkg/lib/database"
|
||||
ftsearch "github.com/anyproto/anytype-heart/pkg/lib/localstore/ftsearch"
|
||||
model "github.com/anyproto/anytype-heart/pkg/lib/pb/model"
|
||||
types "github.com/gogo/protobuf/types"
|
||||
gomock "go.uber.org/mock/gomock"
|
||||
)
|
||||
|
||||
// MockObjectStore is a mock of ObjectStore interface.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue