Documentation ¶
Overview ¶
Package mock_repository is a generated GoMock package.
Package mock_repository is a generated GoMock package.
Index ¶
- type MockTransaction
- type MockTransactionMockRecorder
- type MockUserRepository
- func (m *MockUserRepository) Create(ctx context.Context, user *model.User) error
- func (m *MockUserRepository) EXPECT() *MockUserRepositoryMockRecorder
- func (m *MockUserRepository) GetByEmail(ctx context.Context, email string) (*model.User, error)
- func (m *MockUserRepository) GetByID(ctx context.Context, id string) (*model.User, error)
- func (m *MockUserRepository) Update(ctx context.Context, user *model.User) error
- type MockUserRepositoryMockRecorder
- func (mr *MockUserRepositoryMockRecorder) Create(ctx, user interface{}) *gomock.Call
- func (mr *MockUserRepositoryMockRecorder) GetByEmail(ctx, email interface{}) *gomock.Call
- func (mr *MockUserRepositoryMockRecorder) GetByID(ctx, id interface{}) *gomock.Call
- func (mr *MockUserRepositoryMockRecorder) Update(ctx, user interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockTransaction ¶
type MockTransaction struct {
// contains filtered or unexported fields
}
MockTransaction is a mock of Transaction interface.
func NewMockTransaction ¶
func NewMockTransaction(ctrl *gomock.Controller) *MockTransaction
NewMockTransaction creates a new mock instance.
func (*MockTransaction) EXPECT ¶
func (m *MockTransaction) EXPECT() *MockTransactionMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTransaction) Transaction ¶
Transaction mocks base method.
type MockTransactionMockRecorder ¶
type MockTransactionMockRecorder struct {
// contains filtered or unexported fields
}
MockTransactionMockRecorder is the mock recorder for MockTransaction.
func (*MockTransactionMockRecorder) Transaction ¶
func (mr *MockTransactionMockRecorder) Transaction(ctx, fn interface{}) *gomock.Call
Transaction indicates an expected call of Transaction.
type MockUserRepository ¶
type MockUserRepository struct {
// contains filtered or unexported fields
}
MockUserRepository is a mock of UserRepository interface.
func NewMockUserRepository ¶
func NewMockUserRepository(ctrl *gomock.Controller) *MockUserRepository
NewMockUserRepository creates a new mock instance.
func (*MockUserRepository) EXPECT ¶
func (m *MockUserRepository) EXPECT() *MockUserRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockUserRepository) GetByEmail ¶
GetByEmail mocks base method.
type MockUserRepositoryMockRecorder ¶
type MockUserRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockUserRepositoryMockRecorder is the mock recorder for MockUserRepository.
func (*MockUserRepositoryMockRecorder) Create ¶
func (mr *MockUserRepositoryMockRecorder) Create(ctx, user interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockUserRepositoryMockRecorder) GetByEmail ¶
func (mr *MockUserRepositoryMockRecorder) GetByEmail(ctx, email interface{}) *gomock.Call
GetByEmail indicates an expected call of GetByEmail.
func (*MockUserRepositoryMockRecorder) GetByID ¶
func (mr *MockUserRepositoryMockRecorder) GetByID(ctx, id interface{}) *gomock.Call
GetByID indicates an expected call of GetByID.
func (*MockUserRepositoryMockRecorder) Update ¶
func (mr *MockUserRepositoryMockRecorder) Update(ctx, user interface{}) *gomock.Call
Update indicates an expected call of Update.