mock_model

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: May 22, 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 MockLockRepository

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

MockLockRepository is a mock of LockRepository interface.

func NewMockLockRepository

func NewMockLockRepository(ctrl *gomock.Controller) *MockLockRepository

NewMockLockRepository creates a new mock instance.

func (*MockLockRepository) Delete

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

Delete mocks base method.

func (*MockLockRepository) DeleteByID

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

DeleteByID mocks base method.

func (*MockLockRepository) DeleteByIDWithTx

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

DeleteByIDWithTx mocks base method.

func (*MockLockRepository) DeleteMulti

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

DeleteMulti mocks base method.

func (*MockLockRepository) DeleteMultiByIDs

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

DeleteMultiByIDs mocks base method.

func (*MockLockRepository) DeleteMultiByIDsWithTx

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

DeleteMultiByIDsWithTx mocks base method.

func (*MockLockRepository) DeleteMultiWithTx

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

DeleteMultiWithTx mocks base method.

func (*MockLockRepository) DeleteWithTx

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

DeleteWithTx mocks base method.

func (*MockLockRepository) EXPECT

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

func (*MockLockRepository) Get

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

Get mocks base method.

func (*MockLockRepository) GetCollection

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

GetCollection mocks base method.

func (*MockLockRepository) GetCollectionName

func (m *MockLockRepository) GetCollectionName() string

GetCollectionName mocks base method.

func (*MockLockRepository) GetDocRef

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

GetDocRef mocks base method.

func (*MockLockRepository) GetMulti

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

GetMulti mocks base method.

func (*MockLockRepository) GetMultiWithTx

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

GetMultiWithTx mocks base method.

func (*MockLockRepository) GetWithDoc

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

GetWithDoc mocks base method.

func (*MockLockRepository) GetWithDocWithTx

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

GetWithDocWithTx mocks base method.

func (*MockLockRepository) GetWithTx

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

GetWithTx mocks base method.

func (*MockLockRepository) Insert

func (m *MockLockRepository) Insert(ctx context.Context, subject *model.Lock) (string, error)

Insert mocks base method.

func (*MockLockRepository) InsertMulti

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

InsertMulti mocks base method.

func (*MockLockRepository) InsertMultiWithTx

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

InsertMultiWithTx mocks base method.

func (*MockLockRepository) InsertWithTx

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

InsertWithTx mocks base method.

func (*MockLockRepository) RunInTransaction

RunInTransaction mocks base method.

func (*MockLockRepository) Search

Search mocks base method.

func (*MockLockRepository) SearchWithTx

SearchWithTx mocks base method.

func (*MockLockRepository) StrictUpdate

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

StrictUpdate mocks base method.

func (*MockLockRepository) StrictUpdateWithTx

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

StrictUpdateWithTx mocks base method.

func (*MockLockRepository) Update

func (m *MockLockRepository) Update(ctx context.Context, subject *model.Lock) error

Update mocks base method.

func (*MockLockRepository) UpdateMulti

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

UpdateMulti mocks base method.

func (*MockLockRepository) UpdateMultiWithTx

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

UpdateMultiWithTx mocks base method.

func (*MockLockRepository) UpdateWithTx

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

UpdateWithTx mocks base method.

type MockLockRepositoryMiddleware

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

MockLockRepositoryMiddleware is a mock of LockRepositoryMiddleware interface.

func NewMockLockRepositoryMiddleware

func NewMockLockRepositoryMiddleware(ctrl *gomock.Controller) *MockLockRepositoryMiddleware

NewMockLockRepositoryMiddleware creates a new mock instance.

func (*MockLockRepositoryMiddleware) BeforeDelete

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

BeforeDelete mocks base method.

func (*MockLockRepositoryMiddleware) BeforeDeleteByID

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

BeforeDeleteByID mocks base method.

func (*MockLockRepositoryMiddleware) BeforeInsert

func (m *MockLockRepositoryMiddleware) BeforeInsert(ctx context.Context, subject *model.Lock) (bool, error)

BeforeInsert mocks base method.

func (*MockLockRepositoryMiddleware) BeforeUpdate

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

BeforeUpdate mocks base method.

func (*MockLockRepositoryMiddleware) EXPECT

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

type MockLockRepositoryMiddlewareMockRecorder

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

MockLockRepositoryMiddlewareMockRecorder is the mock recorder for MockLockRepositoryMiddleware.

func (*MockLockRepositoryMiddlewareMockRecorder) BeforeDelete

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

BeforeDelete indicates an expected call of BeforeDelete.

func (*MockLockRepositoryMiddlewareMockRecorder) BeforeDeleteByID

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

BeforeDeleteByID indicates an expected call of BeforeDeleteByID.

func (*MockLockRepositoryMiddlewareMockRecorder) BeforeInsert

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

BeforeInsert indicates an expected call of BeforeInsert.

func (*MockLockRepositoryMiddlewareMockRecorder) BeforeUpdate

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

BeforeUpdate indicates an expected call of BeforeUpdate.

type MockLockRepositoryMockRecorder

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

MockLockRepositoryMockRecorder is the mock recorder for MockLockRepository.

func (*MockLockRepositoryMockRecorder) Delete

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

Delete indicates an expected call of Delete.

func (*MockLockRepositoryMockRecorder) DeleteByID

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

DeleteByID indicates an expected call of DeleteByID.

func (*MockLockRepositoryMockRecorder) DeleteByIDWithTx

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

DeleteByIDWithTx indicates an expected call of DeleteByIDWithTx.

func (*MockLockRepositoryMockRecorder) DeleteMulti

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

DeleteMulti indicates an expected call of DeleteMulti.

func (*MockLockRepositoryMockRecorder) DeleteMultiByIDs

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

DeleteMultiByIDs indicates an expected call of DeleteMultiByIDs.

func (*MockLockRepositoryMockRecorder) DeleteMultiByIDsWithTx

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

DeleteMultiByIDsWithTx indicates an expected call of DeleteMultiByIDsWithTx.

func (*MockLockRepositoryMockRecorder) DeleteMultiWithTx

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

DeleteMultiWithTx indicates an expected call of DeleteMultiWithTx.

func (*MockLockRepositoryMockRecorder) DeleteWithTx

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

DeleteWithTx indicates an expected call of DeleteWithTx.

func (*MockLockRepositoryMockRecorder) Get

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

Get indicates an expected call of Get.

func (*MockLockRepositoryMockRecorder) GetCollection

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

GetCollection indicates an expected call of GetCollection.

func (*MockLockRepositoryMockRecorder) GetCollectionName

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

GetCollectionName indicates an expected call of GetCollectionName.

func (*MockLockRepositoryMockRecorder) GetDocRef

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

GetDocRef indicates an expected call of GetDocRef.

func (*MockLockRepositoryMockRecorder) GetMulti

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

GetMulti indicates an expected call of GetMulti.

func (*MockLockRepositoryMockRecorder) GetMultiWithTx

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

GetMultiWithTx indicates an expected call of GetMultiWithTx.

func (*MockLockRepositoryMockRecorder) GetWithDoc

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

GetWithDoc indicates an expected call of GetWithDoc.

func (*MockLockRepositoryMockRecorder) GetWithDocWithTx

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

GetWithDocWithTx indicates an expected call of GetWithDocWithTx.

func (*MockLockRepositoryMockRecorder) GetWithTx

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

GetWithTx indicates an expected call of GetWithTx.

func (*MockLockRepositoryMockRecorder) Insert

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

Insert indicates an expected call of Insert.

func (*MockLockRepositoryMockRecorder) InsertMulti

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

InsertMulti indicates an expected call of InsertMulti.

func (*MockLockRepositoryMockRecorder) InsertMultiWithTx

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

InsertMultiWithTx indicates an expected call of InsertMultiWithTx.

func (*MockLockRepositoryMockRecorder) InsertWithTx

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

InsertWithTx indicates an expected call of InsertWithTx.

func (*MockLockRepositoryMockRecorder) RunInTransaction

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

RunInTransaction indicates an expected call of RunInTransaction.

func (*MockLockRepositoryMockRecorder) Search

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

Search indicates an expected call of Search.

func (*MockLockRepositoryMockRecorder) SearchWithTx

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

SearchWithTx indicates an expected call of SearchWithTx.

func (*MockLockRepositoryMockRecorder) StrictUpdate

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

StrictUpdate indicates an expected call of StrictUpdate.

func (*MockLockRepositoryMockRecorder) StrictUpdateWithTx

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

StrictUpdateWithTx indicates an expected call of StrictUpdateWithTx.

func (*MockLockRepositoryMockRecorder) Update

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

Update indicates an expected call of Update.

func (*MockLockRepositoryMockRecorder) UpdateMulti

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

UpdateMulti indicates an expected call of UpdateMulti.

func (*MockLockRepositoryMockRecorder) UpdateMultiWithTx

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

UpdateMultiWithTx indicates an expected call of UpdateMultiWithTx.

func (*MockLockRepositoryMockRecorder) UpdateWithTx

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