mirror of
https://github.com/anyproto/anytype-heart.git
synced 2025-06-09 09:35:00 +09:00
GO-501: Remove doc service as unused
This commit is contained in:
parent
2f68506359
commit
0b1b8f452f
12 changed files with 38 additions and 290 deletions
|
@ -1,18 +0,0 @@
|
|||
//go:generate mockgen -package mockDoc -destination doc_mock.go github.com/anytypeio/go-anytype-middleware/core/block/doc Service
|
||||
package mockDoc
|
||||
|
||||
import (
|
||||
"github.com/anytypeio/go-anytype-middleware/app/testapp"
|
||||
"github.com/anytypeio/go-anytype-middleware/core/block/doc"
|
||||
"github.com/golang/mock/gomock"
|
||||
)
|
||||
|
||||
func RegisterMockDoc(ctrl *gomock.Controller, ta *testapp.TestApp) *MockService {
|
||||
ms := NewMockService(ctrl)
|
||||
ms.EXPECT().Name().AnyTimes().Return(doc.CName)
|
||||
ms.EXPECT().Init(gomock.Any()).AnyTimes()
|
||||
ms.EXPECT().Run(gomock.Any()).AnyTimes()
|
||||
ms.EXPECT().Close().AnyTimes()
|
||||
ta.Register(ms)
|
||||
return ms
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue