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 MockSessionRepository

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

MockSessionRepository is a mock of SessionRepository interface.

func NewMockSessionRepository

func NewMockSessionRepository(ctrl *gomock.Controller) *MockSessionRepository

NewMockSessionRepository creates a new mock instance.

func (*MockSessionRepository) Delete

func (m *MockSessionRepository) Delete(ctx context.Context, subject *model.Session, opts ...repository.DeleteOption) error

Delete mocks base method.

func (*MockSessionRepository) DeleteByID

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

DeleteByID mocks base method.

func (*MockSessionRepository) DeleteByIDWithTx

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

DeleteByIDWithTx mocks base method.

func (*MockSessionRepository) DeleteMulti

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

DeleteMulti mocks base method.

func (*MockSessionRepository) DeleteMultiByIDs

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

DeleteMultiByIDs mocks base method.

func (*MockSessionRepository) DeleteMultiByIDsWithTx

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

DeleteMultiByIDsWithTx mocks base method.

func (*MockSessionRepository) DeleteMultiWithTx

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

DeleteMultiWithTx mocks base method.

func (*MockSessionRepository) DeleteWithTx

func (m *MockSessionRepository) DeleteWithTx(ctx context.Context, tx *firestore.Transaction, subject *model.Session, opts ...repository.DeleteOption) error

DeleteWithTx mocks base method.

func (*MockSessionRepository) EXPECT

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

func (*MockSessionRepository) Get

Get mocks base method.

func (*MockSessionRepository) GetCollection

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

GetCollection mocks base method.

func (*MockSessionRepository) GetCollectionName

func (m *MockSessionRepository) GetCollectionName() string

GetCollectionName mocks base method.

func (*MockSessionRepository) GetDocRef

GetDocRef mocks base method.

func (*MockSessionRepository) GetMulti

func (m *MockSessionRepository) GetMulti(ctx context.Context, ids []string, opts ...repository.GetOption) ([]*model.Session, error)

GetMulti mocks base method.

func (*MockSessionRepository) GetMultiWithTx

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

GetMultiWithTx mocks base method.

func (*MockSessionRepository) GetWithDoc

GetWithDoc mocks base method.

func (*MockSessionRepository) GetWithDocWithTx

GetWithDocWithTx mocks base method.

func (*MockSessionRepository) GetWithTx

GetWithTx mocks base method.

func (*MockSessionRepository) Insert

func (m *MockSessionRepository) Insert(ctx context.Context, subject *model.Session) (string, error)

Insert mocks base method.

func (*MockSessionRepository) InsertMulti

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

InsertMulti mocks base method.

func (*MockSessionRepository) InsertMultiWithTx

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

InsertMultiWithTx mocks base method.

func (*MockSessionRepository) InsertWithTx

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

InsertWithTx mocks base method.

func (*MockSessionRepository) RunInTransaction

RunInTransaction mocks base method.

func (*MockSessionRepository) Search

Search mocks base method.

func (*MockSessionRepository) SearchWithTx

SearchWithTx mocks base method.

func (*MockSessionRepository) StrictUpdate

StrictUpdate mocks base method.

func (*MockSessionRepository) StrictUpdateWithTx

StrictUpdateWithTx mocks base method.

func (*MockSessionRepository) Update

func (m *MockSessionRepository) Update(ctx context.Context, subject *model.Session) error

Update mocks base method.

func (*MockSessionRepository) UpdateMulti

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

UpdateMulti mocks base method.

func (*MockSessionRepository) UpdateMultiWithTx

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

UpdateMultiWithTx mocks base method.

func (*MockSessionRepository) UpdateWithTx

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

UpdateWithTx mocks base method.

type MockSessionRepositoryMiddleware

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

MockSessionRepositoryMiddleware is a mock of SessionRepositoryMiddleware interface.

func NewMockSessionRepositoryMiddleware

func NewMockSessionRepositoryMiddleware(ctrl *gomock.Controller) *MockSessionRepositoryMiddleware

NewMockSessionRepositoryMiddleware creates a new mock instance.

func (*MockSessionRepositoryMiddleware) BeforeDelete

func (m *MockSessionRepositoryMiddleware) BeforeDelete(ctx context.Context, subject *model.Session, opts ...repository.DeleteOption) (bool, error)

BeforeDelete mocks base method.

func (*MockSessionRepositoryMiddleware) BeforeDeleteByID

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

BeforeDeleteByID mocks base method.

func (*MockSessionRepositoryMiddleware) BeforeInsert

func (m *MockSessionRepositoryMiddleware) BeforeInsert(ctx context.Context, subject *model.Session) (bool, error)

BeforeInsert mocks base method.

func (*MockSessionRepositoryMiddleware) BeforeUpdate

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

BeforeUpdate mocks base method.

func (*MockSessionRepositoryMiddleware) EXPECT

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

type MockSessionRepositoryMiddlewareMockRecorder

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

MockSessionRepositoryMiddlewareMockRecorder is the mock recorder for MockSessionRepositoryMiddleware.

func (*MockSessionRepositoryMiddlewareMockRecorder) BeforeDelete

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

BeforeDelete indicates an expected call of BeforeDelete.

func (*MockSessionRepositoryMiddlewareMockRecorder) BeforeDeleteByID

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

BeforeDeleteByID indicates an expected call of BeforeDeleteByID.

func (*MockSessionRepositoryMiddlewareMockRecorder) BeforeInsert

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

BeforeInsert indicates an expected call of BeforeInsert.

func (*MockSessionRepositoryMiddlewareMockRecorder) BeforeUpdate

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

BeforeUpdate indicates an expected call of BeforeUpdate.

type MockSessionRepositoryMockRecorder

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

MockSessionRepositoryMockRecorder is the mock recorder for MockSessionRepository.

func (*MockSessionRepositoryMockRecorder) Delete

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

Delete indicates an expected call of Delete.

func (*MockSessionRepositoryMockRecorder) DeleteByID

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

DeleteByID indicates an expected call of DeleteByID.

func (*MockSessionRepositoryMockRecorder) DeleteByIDWithTx

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

DeleteByIDWithTx indicates an expected call of DeleteByIDWithTx.

func (*MockSessionRepositoryMockRecorder) DeleteMulti

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

DeleteMulti indicates an expected call of DeleteMulti.

func (*MockSessionRepositoryMockRecorder) DeleteMultiByIDs

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

DeleteMultiByIDs indicates an expected call of DeleteMultiByIDs.

func (*MockSessionRepositoryMockRecorder) DeleteMultiByIDsWithTx

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

DeleteMultiByIDsWithTx indicates an expected call of DeleteMultiByIDsWithTx.

func (*MockSessionRepositoryMockRecorder) DeleteMultiWithTx

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

DeleteMultiWithTx indicates an expected call of DeleteMultiWithTx.

func (*MockSessionRepositoryMockRecorder) DeleteWithTx

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

DeleteWithTx indicates an expected call of DeleteWithTx.

func (*MockSessionRepositoryMockRecorder) Get

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

Get indicates an expected call of Get.

func (*MockSessionRepositoryMockRecorder) GetCollection

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

GetCollection indicates an expected call of GetCollection.

func (*MockSessionRepositoryMockRecorder) GetCollectionName

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

GetCollectionName indicates an expected call of GetCollectionName.

func (*MockSessionRepositoryMockRecorder) GetDocRef

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

GetDocRef indicates an expected call of GetDocRef.

func (*MockSessionRepositoryMockRecorder) GetMulti

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

GetMulti indicates an expected call of GetMulti.

func (*MockSessionRepositoryMockRecorder) GetMultiWithTx

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

GetMultiWithTx indicates an expected call of GetMultiWithTx.

func (*MockSessionRepositoryMockRecorder) GetWithDoc

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

GetWithDoc indicates an expected call of GetWithDoc.

func (*MockSessionRepositoryMockRecorder) GetWithDocWithTx

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

GetWithDocWithTx indicates an expected call of GetWithDocWithTx.

func (*MockSessionRepositoryMockRecorder) GetWithTx

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

GetWithTx indicates an expected call of GetWithTx.

func (*MockSessionRepositoryMockRecorder) Insert

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

Insert indicates an expected call of Insert.

func (*MockSessionRepositoryMockRecorder) InsertMulti

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

InsertMulti indicates an expected call of InsertMulti.

func (*MockSessionRepositoryMockRecorder) InsertMultiWithTx

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

InsertMultiWithTx indicates an expected call of InsertMultiWithTx.

func (*MockSessionRepositoryMockRecorder) InsertWithTx

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

InsertWithTx indicates an expected call of InsertWithTx.

func (*MockSessionRepositoryMockRecorder) RunInTransaction

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

RunInTransaction indicates an expected call of RunInTransaction.

func (*MockSessionRepositoryMockRecorder) Search

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

Search indicates an expected call of Search.

func (*MockSessionRepositoryMockRecorder) SearchWithTx

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

SearchWithTx indicates an expected call of SearchWithTx.

func (*MockSessionRepositoryMockRecorder) StrictUpdate

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

StrictUpdate indicates an expected call of StrictUpdate.

func (*MockSessionRepositoryMockRecorder) StrictUpdateWithTx

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

StrictUpdateWithTx indicates an expected call of StrictUpdateWithTx.

func (*MockSessionRepositoryMockRecorder) Update

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

Update indicates an expected call of Update.

func (*MockSessionRepositoryMockRecorder) UpdateMulti

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

UpdateMulti indicates an expected call of UpdateMulti.

func (*MockSessionRepositoryMockRecorder) UpdateMultiWithTx

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

UpdateMultiWithTx indicates an expected call of UpdateMultiWithTx.

func (*MockSessionRepositoryMockRecorder) UpdateWithTx

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