mocks

package
v0.0.0-...-20011d9 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package mocks 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) Get

func (m *MockUrlRepository) Get(ctx context.Context, id string) (string, error)

Get mocks base method.

func (*MockUrlRepository) List

func (m *MockUrlRepository) List(ctx context.Context) ([]domain.Url, error)

List mocks base method.

func (*MockUrlRepository) Put

func (m *MockUrlRepository) Put(ctx context.Context, url domain.Url) error

Put 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) Get

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

Get indicates an expected call of Get.

func (*MockUrlRepositoryMockRecorder) List

func (mr *MockUrlRepositoryMockRecorder) List(ctx interface{}) *gomock.Call

List indicates an expected call of List.

func (*MockUrlRepositoryMockRecorder) Put

func (mr *MockUrlRepositoryMockRecorder) Put(ctx, url interface{}) *gomock.Call

Put indicates an expected call of Put.

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) Create

func (m *MockUrlUseCase) Create(ctx context.Context, destination string) (domain.Url, error)

Create mocks base method.

func (*MockUrlUseCase) CreateWithAlias

func (m *MockUrlUseCase) CreateWithAlias(ctx context.Context, id, destination string) (domain.Url, error)

CreateWithId mocks base method.

func (*MockUrlUseCase) Delete

func (m *MockUrlUseCase) Delete(ctx context.Context, id string) 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) List

func (m *MockUrlUseCase) List(ctx context.Context) ([]domain.Url, error)

List mocks base method.

type MockUrlUseCaseMockRecorder

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

MockUrlUseCaseMockRecorder is the mock recorder for MockUrlUseCase.

func (*MockUrlUseCaseMockRecorder) Create

func (mr *MockUrlUseCaseMockRecorder) Create(ctx, destination interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockUrlUseCaseMockRecorder) CreateWithId

func (mr *MockUrlUseCaseMockRecorder) CreateWithId(ctx, id, destination interface{}) *gomock.Call

CreateWithId indicates an expected call of CreateWithId.

func (*MockUrlUseCaseMockRecorder) Delete

func (mr *MockUrlUseCaseMockRecorder) Delete(ctx, id 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) List

func (mr *MockUrlUseCaseMockRecorder) List(ctx interface{}) *gomock.Call

List indicates an expected call of List.

Jump to

Keyboard shortcuts

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