mocks

package
v0.0.0-...-c953c3f Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package mock_profile is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockRepository

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

MockRepository is a mock of Repository interface.

func NewMockRepository

func NewMockRepository(ctrl *gomock.Controller) *MockRepository

NewMockRepository creates a new mock instance.

func (*MockRepository) EXPECT

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

func (*MockRepository) GetByUserID

func (m *MockRepository) GetByUserID(ctx context.Context, userID string) (*entity.Profile, error)

GetByUserID mocks base method.

func (*MockRepository) RemoveByUserID

func (m *MockRepository) RemoveByUserID(ctx context.Context, userID string) error

RemoveByUserID mocks base method.

func (*MockRepository) Store

func (m *MockRepository) Store(ctx context.Context, profile *entity.Profile) (int, error)

Store mocks base method.

func (*MockRepository) Update

func (m *MockRepository) Update(ctx context.Context, profile *entity.Profile) error

Update mocks base method.

type MockRepositoryMockRecorder

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

MockRepositoryMockRecorder is the mock recorder for MockRepository.

func (*MockRepositoryMockRecorder) GetByUserID

func (mr *MockRepositoryMockRecorder) GetByUserID(ctx, userID interface{}) *gomock.Call

GetByUserID indicates an expected call of GetByUserID.

func (*MockRepositoryMockRecorder) RemoveByUserID

func (mr *MockRepositoryMockRecorder) RemoveByUserID(ctx, userID interface{}) *gomock.Call

RemoveByUserID indicates an expected call of RemoveByUserID.

func (*MockRepositoryMockRecorder) Store

func (mr *MockRepositoryMockRecorder) Store(ctx, profile interface{}) *gomock.Call

Store indicates an expected call of Store.

func (*MockRepositoryMockRecorder) Update

func (mr *MockRepositoryMockRecorder) Update(ctx, profile interface{}) *gomock.Call

Update indicates an expected call of Update.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL