mock_model

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2022 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) DeleteByIdentity

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

DeleteByIdentity mocks base method.

func (*MockTaskRepository) DeleteByIdentityWithTx

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

DeleteByIdentityWithTx 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) DeleteMultiByIdentities

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

DeleteMultiByIdentities mocks base method.

func (*MockTaskRepository) DeleteMultiByIdentitiesWithTx

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

DeleteMultiByIdentitiesWithTx 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, identity string, opts ...model.GetOption) (*model.Task, error)

Get mocks base method.

func (*MockTaskRepository) GetByDesc added in v1.4.0

func (m *MockTaskRepository) GetByDesc(ctx context.Context, description string) (*model.Task, error)

GetByDesc mocks base method.

func (*MockTaskRepository) GetByDescWithTx added in v1.4.0

func (m *MockTaskRepository) GetByDescWithTx(tx *firestore.Transaction, description string) (*model.Task, error)

GetByDescWithTx 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(identity string) *firestore.DocumentRef

GetDocRef mocks base method.

func (*MockTaskRepository) GetMulti

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

GetMulti mocks base method.

func (*MockTaskRepository) GetMultiWithTx

func (m *MockTaskRepository) GetMultiWithTx(tx *firestore.Transaction, identities []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, identity 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) BeforeDeleteByIdentity

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

BeforeDeleteByIdentity 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) BeforeDeleteByIdentity

func (mr *MockTaskRepositoryMiddlewareMockRecorder) BeforeDeleteByIdentity(ctx, identities interface{}, opts ...interface{}) *gomock.Call

BeforeDeleteByIdentity indicates an expected call of BeforeDeleteByIdentity.

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) DeleteByIdentity

func (mr *MockTaskRepositoryMockRecorder) DeleteByIdentity(ctx, identity interface{}, opts ...interface{}) *gomock.Call

DeleteByIdentity indicates an expected call of DeleteByIdentity.

func (*MockTaskRepositoryMockRecorder) DeleteByIdentityWithTx

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

DeleteByIdentityWithTx indicates an expected call of DeleteByIdentityWithTx.

func (*MockTaskRepositoryMockRecorder) DeleteMulti

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

DeleteMulti indicates an expected call of DeleteMulti.

func (*MockTaskRepositoryMockRecorder) DeleteMultiByIdentities

func (mr *MockTaskRepositoryMockRecorder) DeleteMultiByIdentities(ctx, identities interface{}, opts ...interface{}) *gomock.Call

DeleteMultiByIdentities indicates an expected call of DeleteMultiByIdentities.

func (*MockTaskRepositoryMockRecorder) DeleteMultiByIdentitiesWithTx

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

DeleteMultiByIdentitiesWithTx indicates an expected call of DeleteMultiByIdentitiesWithTx.

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, identity interface{}, opts ...interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockTaskRepositoryMockRecorder) GetByDesc added in v1.4.0

func (mr *MockTaskRepositoryMockRecorder) GetByDesc(ctx, description interface{}) *gomock.Call

GetByDesc indicates an expected call of GetByDesc.

func (*MockTaskRepositoryMockRecorder) GetByDescWithTx added in v1.4.0

func (mr *MockTaskRepositoryMockRecorder) GetByDescWithTx(tx, description interface{}) *gomock.Call

GetByDescWithTx indicates an expected call of GetByDescWithTx.

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(identity interface{}) *gomock.Call

GetDocRef indicates an expected call of GetDocRef.

func (*MockTaskRepositoryMockRecorder) GetMulti

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

GetMulti indicates an expected call of GetMulti.

func (*MockTaskRepositoryMockRecorder) GetMultiWithTx

func (mr *MockTaskRepositoryMockRecorder) GetMultiWithTx(tx, identities 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, identity 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