Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Index ¶
- type MockIComic
- func (m *MockIComic) CreateIndex(arg0 context.Context) error
- func (m *MockIComic) EXPECT() *MockIComicMockRecorder
- func (m *MockIComic) Find(name string) (model.Comic, error)
- func (m *MockIComic) FindAll(ctx context.Context, name string, first, offset int) ([]model.Comic, error)
- func (m *MockIComic) FindByID(id primitive.ObjectID) (model.Comic, error)
- func (m *MockIComic) FindByName(arg0 context.Context, arg1 string) (model.Comic, error)
- func (m *MockIComic) Insert(arg0 *model.Comic) error
- type MockIComicMockRecorder
- func (mr *MockIComicMockRecorder) CreateIndex(arg0 interface{}) *gomock.Call
- func (mr *MockIComicMockRecorder) Find(name interface{}) *gomock.Call
- func (mr *MockIComicMockRecorder) FindAll(ctx, name, first, offset interface{}) *gomock.Call
- func (mr *MockIComicMockRecorder) FindByID(id interface{}) *gomock.Call
- func (mr *MockIComicMockRecorder) FindByName(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockIComicMockRecorder) Insert(arg0 interface{}) *gomock.Call
- type MockIEpisode
- func (m *MockIEpisode) CreateIndex(arg0 context.Context) error
- func (m *MockIEpisode) EXPECT() *MockIEpisodeMockRecorder
- func (m *MockIEpisode) FindAll(ctx context.Context, comicID primitive.ObjectID, first, offset int) ([]model.Episode, error)
- func (m *MockIEpisode) FindByNo(comicID primitive.ObjectID, no int) (*model.Episode, error)
- func (m *MockIEpisode) Insert(arg0 *model.Episode) error
- type MockIEpisodeMockRecorder
- func (mr *MockIEpisodeMockRecorder) CreateIndex(arg0 interface{}) *gomock.Call
- func (mr *MockIEpisodeMockRecorder) FindAll(ctx, comicID, first, offset interface{}) *gomock.Call
- func (mr *MockIEpisodeMockRecorder) FindByNo(comicID, no interface{}) *gomock.Call
- func (mr *MockIEpisodeMockRecorder) Insert(arg0 interface{}) *gomock.Call
- type MockIPage
- func (m *MockIPage) CreateIndex(arg0 context.Context) error
- func (m *MockIPage) EXPECT() *MockIPageMockRecorder
- func (m *MockIPage) FindByEpisode(ctx context.Context, episodeID primitive.ObjectID, first, offset int) ([]model.Page, error)
- func (m *MockIPage) FindByEpisodeSource(episodeID, sourceID primitive.ObjectID) (model.Page, error)
- func (m *MockIPage) Insert(arg0 *model.Page) error
- type MockIPageMockRecorder
- func (mr *MockIPageMockRecorder) CreateIndex(arg0 interface{}) *gomock.Call
- func (mr *MockIPageMockRecorder) FindByEpisode(ctx, episodeID, first, offset interface{}) *gomock.Call
- func (mr *MockIPageMockRecorder) FindByEpisodeSource(episodeID, sourceID interface{}) *gomock.Call
- func (mr *MockIPageMockRecorder) Insert(arg0 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockIComic ¶
type MockIComic struct {
// contains filtered or unexported fields
}
MockIComic is a mock of IComic interface
func NewMockIComic ¶
func NewMockIComic(ctrl *gomock.Controller) *MockIComic
NewMockIComic creates a new mock instance
func (*MockIComic) CreateIndex ¶
func (m *MockIComic) CreateIndex(arg0 context.Context) error
CreateIndex mocks base method
func (*MockIComic) EXPECT ¶
func (m *MockIComic) EXPECT() *MockIComicMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockIComic) Find ¶
func (m *MockIComic) Find(name string) (model.Comic, error)
Find mocks base method
func (*MockIComic) FindAll ¶
func (m *MockIComic) FindAll(ctx context.Context, name string, first, offset int) ([]model.Comic, error)
FindAll mocks base method
func (*MockIComic) FindByName ¶
FindByName mocks base method
type MockIComicMockRecorder ¶
type MockIComicMockRecorder struct {
// contains filtered or unexported fields
}
MockIComicMockRecorder is the mock recorder for MockIComic
func (*MockIComicMockRecorder) CreateIndex ¶
func (mr *MockIComicMockRecorder) CreateIndex(arg0 interface{}) *gomock.Call
CreateIndex indicates an expected call of CreateIndex
func (*MockIComicMockRecorder) Find ¶
func (mr *MockIComicMockRecorder) Find(name interface{}) *gomock.Call
Find indicates an expected call of Find
func (*MockIComicMockRecorder) FindAll ¶
func (mr *MockIComicMockRecorder) FindAll(ctx, name, first, offset interface{}) *gomock.Call
FindAll indicates an expected call of FindAll
func (*MockIComicMockRecorder) FindByID ¶
func (mr *MockIComicMockRecorder) FindByID(id interface{}) *gomock.Call
FindByID indicates an expected call of FindByID
func (*MockIComicMockRecorder) FindByName ¶
func (mr *MockIComicMockRecorder) FindByName(arg0, arg1 interface{}) *gomock.Call
FindByName indicates an expected call of FindByName
func (*MockIComicMockRecorder) Insert ¶
func (mr *MockIComicMockRecorder) Insert(arg0 interface{}) *gomock.Call
Insert indicates an expected call of Insert
type MockIEpisode ¶
type MockIEpisode struct {
// contains filtered or unexported fields
}
MockIEpisode is a mock of IEpisode interface
func NewMockIEpisode ¶
func NewMockIEpisode(ctrl *gomock.Controller) *MockIEpisode
NewMockIEpisode creates a new mock instance
func (*MockIEpisode) CreateIndex ¶
func (m *MockIEpisode) CreateIndex(arg0 context.Context) error
CreateIndex mocks base method
func (*MockIEpisode) EXPECT ¶
func (m *MockIEpisode) EXPECT() *MockIEpisodeMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockIEpisode) FindAll ¶
func (m *MockIEpisode) FindAll(ctx context.Context, comicID primitive.ObjectID, first, offset int) ([]model.Episode, error)
FindAll mocks base method
type MockIEpisodeMockRecorder ¶
type MockIEpisodeMockRecorder struct {
// contains filtered or unexported fields
}
MockIEpisodeMockRecorder is the mock recorder for MockIEpisode
func (*MockIEpisodeMockRecorder) CreateIndex ¶
func (mr *MockIEpisodeMockRecorder) CreateIndex(arg0 interface{}) *gomock.Call
CreateIndex indicates an expected call of CreateIndex
func (*MockIEpisodeMockRecorder) FindAll ¶
func (mr *MockIEpisodeMockRecorder) FindAll(ctx, comicID, first, offset interface{}) *gomock.Call
FindAll indicates an expected call of FindAll
func (*MockIEpisodeMockRecorder) FindByNo ¶
func (mr *MockIEpisodeMockRecorder) FindByNo(comicID, no interface{}) *gomock.Call
FindByNo indicates an expected call of FindByNo
func (*MockIEpisodeMockRecorder) Insert ¶
func (mr *MockIEpisodeMockRecorder) Insert(arg0 interface{}) *gomock.Call
Insert indicates an expected call of Insert
type MockIPage ¶
type MockIPage struct {
// contains filtered or unexported fields
}
MockIPage is a mock of IPage interface
func NewMockIPage ¶
func NewMockIPage(ctrl *gomock.Controller) *MockIPage
NewMockIPage creates a new mock instance
func (*MockIPage) CreateIndex ¶
CreateIndex mocks base method
func (*MockIPage) EXPECT ¶
func (m *MockIPage) EXPECT() *MockIPageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockIPage) FindByEpisode ¶
func (m *MockIPage) FindByEpisode(ctx context.Context, episodeID primitive.ObjectID, first, offset int) ([]model.Page, error)
FindByEpisode mocks base method
func (*MockIPage) FindByEpisodeSource ¶
FindByEpisodeSource mocks base method
type MockIPageMockRecorder ¶
type MockIPageMockRecorder struct {
// contains filtered or unexported fields
}
MockIPageMockRecorder is the mock recorder for MockIPage
func (*MockIPageMockRecorder) CreateIndex ¶
func (mr *MockIPageMockRecorder) CreateIndex(arg0 interface{}) *gomock.Call
CreateIndex indicates an expected call of CreateIndex
func (*MockIPageMockRecorder) FindByEpisode ¶
func (mr *MockIPageMockRecorder) FindByEpisode(ctx, episodeID, first, offset interface{}) *gomock.Call
FindByEpisode indicates an expected call of FindByEpisode
func (*MockIPageMockRecorder) FindByEpisodeSource ¶
func (mr *MockIPageMockRecorder) FindByEpisodeSource(episodeID, sourceID interface{}) *gomock.Call
FindByEpisodeSource indicates an expected call of FindByEpisodeSource
func (*MockIPageMockRecorder) Insert ¶
func (mr *MockIPageMockRecorder) Insert(arg0 interface{}) *gomock.Call
Insert indicates an expected call of Insert