mock

package
v0.0.0-...-0efd02e Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockURLRepository

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

MockURLRepository is a mock of URLRepository interface.

func NewMockURLRepository

func NewMockURLRepository(ctrl *gomock.Controller) *MockURLRepository

NewMockURLRepository creates a new mock instance.

func (*MockURLRepository) Delete

func (m *MockURLRepository) Delete(ctx context.Context, id string) error

Delete mocks base method.

func (*MockURLRepository) EXPECT

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

func (*MockURLRepository) GetByID

func (m *MockURLRepository) GetByID(ctx context.Context, id string) (*domain.URL, error)

GetByID mocks base method.

func (*MockURLRepository) Store

func (m *MockURLRepository) Store(ctx context.Context, u *domain.URL) error

Store mocks base method.

func (*MockURLRepository) Update

func (m *MockURLRepository) Update(ctx context.Context, url *domain.URL) error

Update mocks base method.

type MockURLRepositoryMockRecorder

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

MockURLRepositoryMockRecorder is the mock recorder for MockURLRepository.

func (*MockURLRepositoryMockRecorder) Delete

func (mr *MockURLRepositoryMockRecorder) Delete(ctx, id interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockURLRepositoryMockRecorder) GetByID

func (mr *MockURLRepositoryMockRecorder) GetByID(ctx, id interface{}) *gomock.Call

GetByID indicates an expected call of GetByID.

func (*MockURLRepositoryMockRecorder) Store

func (mr *MockURLRepositoryMockRecorder) Store(ctx, u interface{}) *gomock.Call

Store indicates an expected call of Store.

func (*MockURLRepositoryMockRecorder) Update

func (mr *MockURLRepositoryMockRecorder) Update(ctx, url interface{}) *gomock.Call

Update indicates an expected call of Update.

type MockURLUsecase

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

MockURLUsecase is a mock of URLUsecase interface.

func NewMockURLUsecase

func NewMockURLUsecase(ctrl *gomock.Controller) *MockURLUsecase

NewMockURLUsecase creates a new mock instance.

func (*MockURLUsecase) Delete

func (m *MockURLUsecase) Delete(ctx context.Context, id string, user *auth.Claims) error

Delete mocks base method.

func (*MockURLUsecase) EXPECT

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

func (*MockURLUsecase) GetByID

func (m *MockURLUsecase) GetByID(ctx context.Context, id string) (*domain.URL, error)

GetByID mocks base method.

func (*MockURLUsecase) Store

func (m *MockURLUsecase) Store(ctx context.Context, createURL domain.CreateURL) (*domain.URL, error)

Store mocks base method.

func (*MockURLUsecase) Update

func (m *MockURLUsecase) Update(ctx context.Context, updateURL domain.UpdateURL, user *auth.Claims) error

Update mocks base method.

type MockURLUsecaseMockRecorder

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

MockURLUsecaseMockRecorder is the mock recorder for MockURLUsecase.

func (*MockURLUsecaseMockRecorder) Delete

func (mr *MockURLUsecaseMockRecorder) Delete(ctx, id, user interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockURLUsecaseMockRecorder) GetByID

func (mr *MockURLUsecaseMockRecorder) GetByID(ctx, id interface{}) *gomock.Call

GetByID indicates an expected call of GetByID.

func (*MockURLUsecaseMockRecorder) Store

func (mr *MockURLUsecaseMockRecorder) Store(ctx, createURL interface{}) *gomock.Call

Store indicates an expected call of Store.

func (*MockURLUsecaseMockRecorder) Update

func (mr *MockURLUsecaseMockRecorder) Update(ctx, updateURL, user 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