mock_repository

package
v0.0.0-...-e5954dd Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package mock_repository is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockOrganizationRepository

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

MockOrganizationRepository is a mock of OrganizationRepository interface.

func NewMockOrganizationRepository

func NewMockOrganizationRepository(ctrl *gomock.Controller) *MockOrganizationRepository

NewMockOrganizationRepository creates a new mock instance.

func (*MockOrganizationRepository) Delete

Delete mocks base method.

func (*MockOrganizationRepository) DeleteByID

DeleteByID mocks base method.

func (*MockOrganizationRepository) DeleteByIDWithTx

DeleteByIDWithTx mocks base method.

func (*MockOrganizationRepository) DeleteMulti

func (m *MockOrganizationRepository) DeleteMulti(ctx context.Context, subjects []*model.Organization, opts ...repository.DeleteOption) error

DeleteMulti mocks base method.

func (*MockOrganizationRepository) DeleteMultiByIDs

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

DeleteMultiByIDs mocks base method.

func (*MockOrganizationRepository) DeleteMultiByIDsWithTx

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

DeleteMultiByIDsWithTx mocks base method.

func (*MockOrganizationRepository) DeleteMultiWithTx

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

DeleteMultiWithTx mocks base method.

func (*MockOrganizationRepository) DeleteWithTx

DeleteWithTx mocks base method.

func (*MockOrganizationRepository) EXPECT

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

func (*MockOrganizationRepository) Get

Get mocks base method.

func (*MockOrganizationRepository) GetCollection

GetCollection mocks base method.

func (*MockOrganizationRepository) GetCollectionName

func (m *MockOrganizationRepository) GetCollectionName() string

GetCollectionName mocks base method.

func (*MockOrganizationRepository) GetDocRef

GetDocRef mocks base method.

func (*MockOrganizationRepository) GetMulti

GetMulti mocks base method.

func (*MockOrganizationRepository) GetMultiWithTx

func (m *MockOrganizationRepository) GetMultiWithTx(tx *firestore.Transaction, ids []string, opts ...repository.GetOption) ([]*model.Organization, error)

GetMultiWithTx mocks base method.

func (*MockOrganizationRepository) GetWithDoc

GetWithDoc mocks base method.

func (*MockOrganizationRepository) GetWithDocWithTx

GetWithDocWithTx mocks base method.

func (*MockOrganizationRepository) GetWithTx

GetWithTx mocks base method.

func (*MockOrganizationRepository) Insert

Insert mocks base method.

func (*MockOrganizationRepository) InsertMulti

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

InsertMulti mocks base method.

func (*MockOrganizationRepository) InsertMultiWithTx

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

InsertMultiWithTx mocks base method.

func (*MockOrganizationRepository) InsertWithTx

InsertWithTx mocks base method.

func (*MockOrganizationRepository) RunInTransaction

RunInTransaction mocks base method.

func (*MockOrganizationRepository) Search

Search mocks base method.

func (*MockOrganizationRepository) SearchWithTx

SearchWithTx mocks base method.

func (*MockOrganizationRepository) StrictUpdate

StrictUpdate mocks base method.

func (*MockOrganizationRepository) StrictUpdateWithTx

StrictUpdateWithTx mocks base method.

func (*MockOrganizationRepository) Update

Update mocks base method.

func (*MockOrganizationRepository) UpdateMulti

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

UpdateMulti mocks base method.

func (*MockOrganizationRepository) UpdateMultiWithTx

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

UpdateMultiWithTx mocks base method.

func (*MockOrganizationRepository) UpdateWithTx

UpdateWithTx mocks base method.

type MockOrganizationRepositoryMiddleware

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

MockOrganizationRepositoryMiddleware is a mock of OrganizationRepositoryMiddleware interface.

func NewMockOrganizationRepositoryMiddleware

func NewMockOrganizationRepositoryMiddleware(ctrl *gomock.Controller) *MockOrganizationRepositoryMiddleware

NewMockOrganizationRepositoryMiddleware creates a new mock instance.

func (*MockOrganizationRepositoryMiddleware) BeforeDelete

BeforeDelete mocks base method.

func (*MockOrganizationRepositoryMiddleware) BeforeDeleteByID

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

BeforeDeleteByID mocks base method.

func (*MockOrganizationRepositoryMiddleware) BeforeInsert

BeforeInsert mocks base method.

func (*MockOrganizationRepositoryMiddleware) BeforeUpdate

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

BeforeUpdate mocks base method.

func (*MockOrganizationRepositoryMiddleware) EXPECT

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

type MockOrganizationRepositoryMiddlewareMockRecorder

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

MockOrganizationRepositoryMiddlewareMockRecorder is the mock recorder for MockOrganizationRepositoryMiddleware.

func (*MockOrganizationRepositoryMiddlewareMockRecorder) BeforeDelete

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

BeforeDelete indicates an expected call of BeforeDelete.

func (*MockOrganizationRepositoryMiddlewareMockRecorder) BeforeDeleteByID

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

BeforeDeleteByID indicates an expected call of BeforeDeleteByID.

func (*MockOrganizationRepositoryMiddlewareMockRecorder) BeforeInsert

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

BeforeInsert indicates an expected call of BeforeInsert.

func (*MockOrganizationRepositoryMiddlewareMockRecorder) BeforeUpdate

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

BeforeUpdate indicates an expected call of BeforeUpdate.

type MockOrganizationRepositoryMockRecorder

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

MockOrganizationRepositoryMockRecorder is the mock recorder for MockOrganizationRepository.

func (*MockOrganizationRepositoryMockRecorder) Delete

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

Delete indicates an expected call of Delete.

func (*MockOrganizationRepositoryMockRecorder) DeleteByID

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

DeleteByID indicates an expected call of DeleteByID.

func (*MockOrganizationRepositoryMockRecorder) DeleteByIDWithTx

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

DeleteByIDWithTx indicates an expected call of DeleteByIDWithTx.

func (*MockOrganizationRepositoryMockRecorder) DeleteMulti

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

DeleteMulti indicates an expected call of DeleteMulti.

func (*MockOrganizationRepositoryMockRecorder) DeleteMultiByIDs

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

DeleteMultiByIDs indicates an expected call of DeleteMultiByIDs.

func (*MockOrganizationRepositoryMockRecorder) DeleteMultiByIDsWithTx

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

DeleteMultiByIDsWithTx indicates an expected call of DeleteMultiByIDsWithTx.

func (*MockOrganizationRepositoryMockRecorder) DeleteMultiWithTx

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

DeleteMultiWithTx indicates an expected call of DeleteMultiWithTx.

func (*MockOrganizationRepositoryMockRecorder) DeleteWithTx

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

DeleteWithTx indicates an expected call of DeleteWithTx.

func (*MockOrganizationRepositoryMockRecorder) Get

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

Get indicates an expected call of Get.

func (*MockOrganizationRepositoryMockRecorder) GetCollection

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

GetCollection indicates an expected call of GetCollection.

func (*MockOrganizationRepositoryMockRecorder) GetCollectionName

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

GetCollectionName indicates an expected call of GetCollectionName.

func (*MockOrganizationRepositoryMockRecorder) GetDocRef

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

GetDocRef indicates an expected call of GetDocRef.

func (*MockOrganizationRepositoryMockRecorder) GetMulti

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

GetMulti indicates an expected call of GetMulti.

func (*MockOrganizationRepositoryMockRecorder) GetMultiWithTx

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

GetMultiWithTx indicates an expected call of GetMultiWithTx.

func (*MockOrganizationRepositoryMockRecorder) GetWithDoc

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

GetWithDoc indicates an expected call of GetWithDoc.

func (*MockOrganizationRepositoryMockRecorder) GetWithDocWithTx

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

GetWithDocWithTx indicates an expected call of GetWithDocWithTx.

func (*MockOrganizationRepositoryMockRecorder) GetWithTx

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

GetWithTx indicates an expected call of GetWithTx.

func (*MockOrganizationRepositoryMockRecorder) Insert

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

Insert indicates an expected call of Insert.

func (*MockOrganizationRepositoryMockRecorder) InsertMulti

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

InsertMulti indicates an expected call of InsertMulti.

func (*MockOrganizationRepositoryMockRecorder) InsertMultiWithTx

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

InsertMultiWithTx indicates an expected call of InsertMultiWithTx.

func (*MockOrganizationRepositoryMockRecorder) InsertWithTx

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

InsertWithTx indicates an expected call of InsertWithTx.

func (*MockOrganizationRepositoryMockRecorder) RunInTransaction

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

RunInTransaction indicates an expected call of RunInTransaction.

func (*MockOrganizationRepositoryMockRecorder) Search

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

Search indicates an expected call of Search.

func (*MockOrganizationRepositoryMockRecorder) SearchWithTx

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

SearchWithTx indicates an expected call of SearchWithTx.

func (*MockOrganizationRepositoryMockRecorder) StrictUpdate

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

StrictUpdate indicates an expected call of StrictUpdate.

func (*MockOrganizationRepositoryMockRecorder) StrictUpdateWithTx

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

StrictUpdateWithTx indicates an expected call of StrictUpdateWithTx.

func (*MockOrganizationRepositoryMockRecorder) Update

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

Update indicates an expected call of Update.

func (*MockOrganizationRepositoryMockRecorder) UpdateMulti

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

UpdateMulti indicates an expected call of UpdateMulti.

func (*MockOrganizationRepositoryMockRecorder) UpdateMultiWithTx

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

UpdateMultiWithTx indicates an expected call of UpdateMultiWithTx.

func (*MockOrganizationRepositoryMockRecorder) UpdateWithTx

func (mr *MockOrganizationRepositoryMockRecorder) 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