mock_model

package
v1.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 14, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package mock_model is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockTaskRepository

type MockTaskRepository struct {
	// contains filtered or unexported fields
}

MockTaskRepository is a mock of TaskRepository interface.

func NewMockTaskRepository

func NewMockTaskRepository(ctrl *gomock.Controller) *MockTaskRepository

NewMockTaskRepository creates a new mock instance.

func (*MockTaskRepository) Delete

func (m *MockTaskRepository) Delete(ctx context.Context, subject *model.Task, opts ...model.DeleteOption) error

Delete mocks base method.

func (*MockTaskRepository) DeleteByID

func (m *MockTaskRepository) DeleteByID(ctx context.Context, id string, opts ...model.DeleteOption) error

DeleteByID mocks base method.

func (*MockTaskRepository) DeleteByIDWithTx

func (m *MockTaskRepository) DeleteByIDWithTx(ctx context.Context, tx *firestore.Transaction, id string, opts ...model.DeleteOption) error

DeleteByIDWithTx mocks base method.

func (*MockTaskRepository) DeleteMulti

func (m *MockTaskRepository) DeleteMulti(ctx context.Context, subjects []*model.Task, opts ...model.DeleteOption) error

DeleteMulti mocks base method.

func (*MockTaskRepository) DeleteMultiByIDs

func (m *MockTaskRepository) DeleteMultiByIDs(ctx context.Context, ids []string, opts ...model.DeleteOption) error

DeleteMultiByIDs mocks base method.

func (*MockTaskRepository) DeleteMultiByIDsWithTx

func (m *MockTaskRepository) DeleteMultiByIDsWithTx(ctx context.Context, tx *firestore.Transaction, ids []string, opts ...model.DeleteOption) error

DeleteMultiByIDsWithTx mocks base method.

func (*MockTaskRepository) DeleteMultiWithTx

func (m *MockTaskRepository) DeleteMultiWithTx(ctx context.Context, tx *firestore.Transaction, subjects []*model.Task, opts ...model.DeleteOption) error

DeleteMultiWithTx mocks base method.

func (*MockTaskRepository) DeleteWithTx

func (m *MockTaskRepository) DeleteWithTx(ctx context.Context, tx *firestore.Transaction, subject *model.Task, opts ...model.DeleteOption) error

DeleteWithTx mocks base method.

func (*MockTaskRepository) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockTaskRepository) Get

func (m *MockTaskRepository) Get(ctx context.Context, id string, opts ...model.GetOption) (*model.Task, error)

Get mocks base method.

func (*MockTaskRepository) GetCollection

func (m *MockTaskRepository) GetCollection() *firestore.CollectionRef

GetCollection mocks base method.

func (*MockTaskRepository) GetCollectionName

func (m *MockTaskRepository) GetCollectionName() string

GetCollectionName mocks base method.

func (*MockTaskRepository) GetDocRef

func (m *MockTaskRepository) GetDocRef(id string) *firestore.DocumentRef

GetDocRef mocks base method.

func (*MockTaskRepository) GetMulti

func (m *MockTaskRepository) GetMulti(ctx context.Context, ids []string, opts ...model.GetOption) ([]*model.Task, error)

GetMulti mocks base method.

func (*MockTaskRepository) GetMultiWithTx

func (m *MockTaskRepository) GetMultiWithTx(tx *firestore.Transaction, ids []string, opts ...model.GetOption) ([]*model.Task, error)

GetMultiWithTx mocks base method.

func (*MockTaskRepository) GetWithDoc

func (m *MockTaskRepository) GetWithDoc(ctx context.Context, doc *firestore.DocumentRef, opts ...model.GetOption) (*model.Task, error)

GetWithDoc mocks base method.

func (*MockTaskRepository) GetWithDocWithTx

func (m *MockTaskRepository) GetWithDocWithTx(tx *firestore.Transaction, doc *firestore.DocumentRef, opts ...model.GetOption) (*model.Task, error)

GetWithDocWithTx mocks base method.

func (*MockTaskRepository) GetWithTx

func (m *MockTaskRepository) GetWithTx(tx *firestore.Transaction, id string, opts ...model.GetOption) (*model.Task, error)

GetWithTx mocks base method.

func (*MockTaskRepository) Insert

func (m *MockTaskRepository) Insert(ctx context.Context, subject *model.Task) (string, error)

Insert mocks base method.

func (*MockTaskRepository) InsertMulti

func (m *MockTaskRepository) InsertMulti(ctx context.Context, subjects []*model.Task) ([]string, error)

InsertMulti mocks base method.

func (*MockTaskRepository) InsertMultiWithTx

func (m *MockTaskRepository) InsertMultiWithTx(ctx context.Context, tx *firestore.Transaction, subjects []*model.Task) ([]string, error)

InsertMultiWithTx mocks base method.

func (*MockTaskRepository) InsertWithTx

func (m *MockTaskRepository) InsertWithTx(ctx context.Context, tx *firestore.Transaction, subject *model.Task) (string, error)

InsertWithTx mocks base method.

func (*MockTaskRepository) RunInTransaction

RunInTransaction mocks base method.

func (*MockTaskRepository) Search

Search mocks base method.

func (*MockTaskRepository) SearchByParam added in v1.4.0

func (m *MockTaskRepository) SearchByParam(ctx context.Context, param *model.TaskSearchParam) ([]*model.Task, *model.PagingResult, error)

SearchByParam mocks base method.

func (*MockTaskRepository) SearchByParamWithTx added in v1.4.0

func (m *MockTaskRepository) SearchByParamWithTx(tx *firestore.Transaction, param *model.TaskSearchParam) ([]*model.Task, *model.PagingResult, error)

SearchByParamWithTx mocks base method.

func (*MockTaskRepository) SearchWithTx

SearchWithTx mocks base method.

func (*MockTaskRepository) StrictUpdate

func (m *MockTaskRepository) StrictUpdate(ctx context.Context, id string, param *model.TaskUpdateParam, opts ...firestore.Precondition) error

StrictUpdate mocks base method.

func (*MockTaskRepository) StrictUpdateWithTx

func (m *MockTaskRepository) StrictUpdateWithTx(tx *firestore.Transaction, id string, param *model.TaskUpdateParam, opts ...firestore.Precondition) error

StrictUpdateWithTx mocks base method.

func (*MockTaskRepository) Update

func (m *MockTaskRepository) Update(ctx context.Context, subject *model.Task) error

Update mocks base method.

func (*MockTaskRepository) UpdateMulti

func (m *MockTaskRepository) UpdateMulti(ctx context.Context, subjects []*model.Task) error

UpdateMulti mocks base method.

func (*MockTaskRepository) UpdateMultiWithTx

func (m *MockTaskRepository) UpdateMultiWithTx(ctx context.Context, tx *firestore.Transaction, subjects []*model.Task) error

UpdateMultiWithTx mocks base method.

func (*MockTaskRepository) UpdateWithTx

func (m *MockTaskRepository) UpdateWithTx(ctx context.Context, tx *firestore.Transaction, subject *model.Task) error

UpdateWithTx mocks base method.

type MockTaskRepositoryMiddleware

type MockTaskRepositoryMiddleware struct {
	// contains filtered or unexported fields
}

MockTaskRepositoryMiddleware is a mock of TaskRepositoryMiddleware interface.

func NewMockTaskRepositoryMiddleware

func NewMockTaskRepositoryMiddleware(ctrl *gomock.Controller) *MockTaskRepositoryMiddleware

NewMockTaskRepositoryMiddleware creates a new mock instance.

func (*MockTaskRepositoryMiddleware) BeforeDelete

func (m *MockTaskRepositoryMiddleware) BeforeDelete(ctx context.Context, subject *model.Task, opts ...model.DeleteOption) (bool, error)

BeforeDelete mocks base method.

func (*MockTaskRepositoryMiddleware) BeforeDeleteByID

func (m *MockTaskRepositoryMiddleware) BeforeDeleteByID(ctx context.Context, ids []string, opts ...model.DeleteOption) (bool, error)

BeforeDeleteByID mocks base method.

func (*MockTaskRepositoryMiddleware) BeforeInsert

func (m *MockTaskRepositoryMiddleware) BeforeInsert(ctx context.Context, subject *model.Task) (bool, error)

BeforeInsert mocks base method.

func (*MockTaskRepositoryMiddleware) BeforeUpdate

func (m *MockTaskRepositoryMiddleware) BeforeUpdate(ctx context.Context, old, subject *model.Task) (bool, error)

BeforeUpdate mocks base method.

func (*MockTaskRepositoryMiddleware) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

type MockTaskRepositoryMiddlewareMockRecorder

type MockTaskRepositoryMiddlewareMockRecorder struct {
	// contains filtered or unexported fields
}

MockTaskRepositoryMiddlewareMockRecorder is the mock recorder for MockTaskRepositoryMiddleware.

func (*MockTaskRepositoryMiddlewareMockRecorder) BeforeDelete

func (mr *MockTaskRepositoryMiddlewareMockRecorder) BeforeDelete(ctx, subject interface{}, opts ...interface{}) *gomock.Call

BeforeDelete indicates an expected call of BeforeDelete.

func (*MockTaskRepositoryMiddlewareMockRecorder) BeforeDeleteByID

func (mr *MockTaskRepositoryMiddlewareMockRecorder) BeforeDeleteByID(ctx, ids interface{}, opts ...interface{}) *gomock.Call

BeforeDeleteByID indicates an expected call of BeforeDeleteByID.

func (*MockTaskRepositoryMiddlewareMockRecorder) BeforeInsert

func (mr *MockTaskRepositoryMiddlewareMockRecorder) BeforeInsert(ctx, subject interface{}) *gomock.Call

BeforeInsert indicates an expected call of BeforeInsert.

func (*MockTaskRepositoryMiddlewareMockRecorder) BeforeUpdate

func (mr *MockTaskRepositoryMiddlewareMockRecorder) BeforeUpdate(ctx, old, subject interface{}) *gomock.Call

BeforeUpdate indicates an expected call of BeforeUpdate.

type MockTaskRepositoryMockRecorder

type MockTaskRepositoryMockRecorder struct {
	// contains filtered or unexported fields
}

MockTaskRepositoryMockRecorder is the mock recorder for MockTaskRepository.

func (*MockTaskRepositoryMockRecorder) Delete

func (mr *MockTaskRepositoryMockRecorder) Delete(ctx, subject interface{}, opts ...interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockTaskRepositoryMockRecorder) DeleteByID

func (mr *MockTaskRepositoryMockRecorder) DeleteByID(ctx, id interface{}, opts ...interface{}) *gomock.Call

DeleteByID indicates an expected call of DeleteByID.

func (*MockTaskRepositoryMockRecorder) DeleteByIDWithTx

func (mr *MockTaskRepositoryMockRecorder) DeleteByIDWithTx(ctx, tx, id interface{}, opts ...interface{}) *gomock.Call

DeleteByIDWithTx indicates an expected call of DeleteByIDWithTx.

func (*MockTaskRepositoryMockRecorder) DeleteMulti

func (mr *MockTaskRepositoryMockRecorder) DeleteMulti(ctx, subjects interface{}, opts ...interface{}) *gomock.Call

DeleteMulti indicates an expected call of DeleteMulti.

func (*MockTaskRepositoryMockRecorder) DeleteMultiByIDs

func (mr *MockTaskRepositoryMockRecorder) DeleteMultiByIDs(ctx, ids interface{}, opts ...interface{}) *gomock.Call

DeleteMultiByIDs indicates an expected call of DeleteMultiByIDs.

func (*MockTaskRepositoryMockRecorder) DeleteMultiByIDsWithTx

func (mr *MockTaskRepositoryMockRecorder) DeleteMultiByIDsWithTx(ctx, tx, ids interface{}, opts ...interface{}) *gomock.Call

DeleteMultiByIDsWithTx indicates an expected call of DeleteMultiByIDsWithTx.

func (*MockTaskRepositoryMockRecorder) DeleteMultiWithTx

func (mr *MockTaskRepositoryMockRecorder) DeleteMultiWithTx(ctx, tx, subjects interface{}, opts ...interface{}) *gomock.Call

DeleteMultiWithTx indicates an expected call of DeleteMultiWithTx.

func (*MockTaskRepositoryMockRecorder) DeleteWithTx

func (mr *MockTaskRepositoryMockRecorder) DeleteWithTx(ctx, tx, subject interface{}, opts ...interface{}) *gomock.Call

DeleteWithTx indicates an expected call of DeleteWithTx.

func (*MockTaskRepositoryMockRecorder) Get

func (mr *MockTaskRepositoryMockRecorder) Get(ctx, id interface{}, opts ...interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockTaskRepositoryMockRecorder) GetCollection

func (mr *MockTaskRepositoryMockRecorder) GetCollection() *gomock.Call

GetCollection indicates an expected call of GetCollection.

func (*MockTaskRepositoryMockRecorder) GetCollectionName

func (mr *MockTaskRepositoryMockRecorder) GetCollectionName() *gomock.Call

GetCollectionName indicates an expected call of GetCollectionName.

func (*MockTaskRepositoryMockRecorder) GetDocRef

func (mr *MockTaskRepositoryMockRecorder) GetDocRef(id interface{}) *gomock.Call

GetDocRef indicates an expected call of GetDocRef.

func (*MockTaskRepositoryMockRecorder) GetMulti

func (mr *MockTaskRepositoryMockRecorder) GetMulti(ctx, ids interface{}, opts ...interface{}) *gomock.Call

GetMulti indicates an expected call of GetMulti.

func (*MockTaskRepositoryMockRecorder) GetMultiWithTx

func (mr *MockTaskRepositoryMockRecorder) GetMultiWithTx(tx, ids interface{}, opts ...interface{}) *gomock.Call

GetMultiWithTx indicates an expected call of GetMultiWithTx.

func (*MockTaskRepositoryMockRecorder) GetWithDoc

func (mr *MockTaskRepositoryMockRecorder) GetWithDoc(ctx, doc interface{}, opts ...interface{}) *gomock.Call

GetWithDoc indicates an expected call of GetWithDoc.

func (*MockTaskRepositoryMockRecorder) GetWithDocWithTx

func (mr *MockTaskRepositoryMockRecorder) GetWithDocWithTx(tx, doc interface{}, opts ...interface{}) *gomock.Call

GetWithDocWithTx indicates an expected call of GetWithDocWithTx.

func (*MockTaskRepositoryMockRecorder) GetWithTx

func (mr *MockTaskRepositoryMockRecorder) GetWithTx(tx, id interface{}, opts ...interface{}) *gomock.Call

GetWithTx indicates an expected call of GetWithTx.

func (*MockTaskRepositoryMockRecorder) Insert

func (mr *MockTaskRepositoryMockRecorder) Insert(ctx, subject interface{}) *gomock.Call

Insert indicates an expected call of Insert.

func (*MockTaskRepositoryMockRecorder) InsertMulti

func (mr *MockTaskRepositoryMockRecorder) InsertMulti(ctx, subjects interface{}) *gomock.Call

InsertMulti indicates an expected call of InsertMulti.

func (*MockTaskRepositoryMockRecorder) InsertMultiWithTx

func (mr *MockTaskRepositoryMockRecorder) InsertMultiWithTx(ctx, tx, subjects interface{}) *gomock.Call

InsertMultiWithTx indicates an expected call of InsertMultiWithTx.

func (*MockTaskRepositoryMockRecorder) InsertWithTx

func (mr *MockTaskRepositoryMockRecorder) InsertWithTx(ctx, tx, subject interface{}) *gomock.Call

InsertWithTx indicates an expected call of InsertWithTx.

func (*MockTaskRepositoryMockRecorder) RunInTransaction

func (mr *MockTaskRepositoryMockRecorder) RunInTransaction() *gomock.Call

RunInTransaction indicates an expected call of RunInTransaction.

func (*MockTaskRepositoryMockRecorder) Search

func (mr *MockTaskRepositoryMockRecorder) Search(ctx, param, q interface{}) *gomock.Call

Search indicates an expected call of Search.

func (*MockTaskRepositoryMockRecorder) SearchByParam added in v1.4.0

func (mr *MockTaskRepositoryMockRecorder) SearchByParam(ctx, param interface{}) *gomock.Call

SearchByParam indicates an expected call of SearchByParam.

func (*MockTaskRepositoryMockRecorder) SearchByParamWithTx added in v1.4.0

func (mr *MockTaskRepositoryMockRecorder) SearchByParamWithTx(tx, param interface{}) *gomock.Call

SearchByParamWithTx indicates an expected call of SearchByParamWithTx.

func (*MockTaskRepositoryMockRecorder) SearchWithTx

func (mr *MockTaskRepositoryMockRecorder) SearchWithTx(tx, param, q interface{}) *gomock.Call

SearchWithTx indicates an expected call of SearchWithTx.

func (*MockTaskRepositoryMockRecorder) StrictUpdate

func (mr *MockTaskRepositoryMockRecorder) StrictUpdate(ctx, id, param interface{}, opts ...interface{}) *gomock.Call

StrictUpdate indicates an expected call of StrictUpdate.

func (*MockTaskRepositoryMockRecorder) StrictUpdateWithTx

func (mr *MockTaskRepositoryMockRecorder) StrictUpdateWithTx(tx, id, param interface{}, opts ...interface{}) *gomock.Call

StrictUpdateWithTx indicates an expected call of StrictUpdateWithTx.

func (*MockTaskRepositoryMockRecorder) Update

func (mr *MockTaskRepositoryMockRecorder) Update(ctx, subject interface{}) *gomock.Call

Update indicates an expected call of Update.

func (*MockTaskRepositoryMockRecorder) UpdateMulti

func (mr *MockTaskRepositoryMockRecorder) UpdateMulti(ctx, subjects interface{}) *gomock.Call

UpdateMulti indicates an expected call of UpdateMulti.

func (*MockTaskRepositoryMockRecorder) UpdateMultiWithTx

func (mr *MockTaskRepositoryMockRecorder) UpdateMultiWithTx(ctx, tx, subjects interface{}) *gomock.Call

UpdateMultiWithTx indicates an expected call of UpdateMultiWithTx.

func (*MockTaskRepositoryMockRecorder) UpdateWithTx

func (mr *MockTaskRepositoryMockRecorder) UpdateWithTx(ctx, tx, subject interface{}) *gomock.Call

UpdateWithTx indicates an expected call of UpdateWithTx.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL