mock_ports

package
v0.0.0-...-1d2f786 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package mock_ports is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockCacher

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

MockCacher is a mock of Cacher interface.

func NewMockCacher

func NewMockCacher(ctrl *gomock.Controller) *MockCacher

NewMockCacher creates a new mock instance.

func (*MockCacher) Del

func (m *MockCacher) Del(ctx context.Context, shortURL string) error

Del mocks base method.

func (*MockCacher) EXPECT

func (m *MockCacher) EXPECT() *MockCacherMockRecorder

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

func (*MockCacher) Get

func (m *MockCacher) Get(ctx context.Context, shortURL string) (string, error)

Get mocks base method.

func (*MockCacher) Set

func (m *MockCacher) Set(ctx context.Context, shortURL, longURL string) error

Set mocks base method.

type MockCacherMockRecorder

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

MockCacherMockRecorder is the mock recorder for MockCacher.

func (*MockCacherMockRecorder) Del

func (mr *MockCacherMockRecorder) Del(ctx, shortURL interface{}) *gomock.Call

Del indicates an expected call of Del.

func (*MockCacherMockRecorder) Get

func (mr *MockCacherMockRecorder) Get(ctx, shortURL interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockCacherMockRecorder) Set

func (mr *MockCacherMockRecorder) Set(ctx, shortURL, longURL interface{}) *gomock.Call

Set indicates an expected call of Set.

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

func (m *MockRepository) Create(ctx context.Context, url domain.URL) error

Create mocks base method.

func (*MockRepository) Delete

func (m *MockRepository) Delete(ctx context.Context, shortURL string) error

Delete mocks base method.

func (*MockRepository) EXPECT

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

func (*MockRepository) Find

func (m *MockRepository) Find(ctx context.Context, shortURL string) (domain.URL, error)

Find mocks base method.

type MockRepositoryMockRecorder

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

MockRepositoryMockRecorder is the mock recorder for MockRepository.

func (*MockRepositoryMockRecorder) Create

func (mr *MockRepositoryMockRecorder) Create(ctx, url interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockRepositoryMockRecorder) Delete

func (mr *MockRepositoryMockRecorder) Delete(ctx, shortURL interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockRepositoryMockRecorder) Find

func (mr *MockRepositoryMockRecorder) Find(ctx, shortURL interface{}) *gomock.Call

Find indicates an expected call of Find.

type MockShortURLGenerator

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

MockShortURLGenerator is a mock of ShortURLGenerator interface.

func NewMockShortURLGenerator

func NewMockShortURLGenerator(ctrl *gomock.Controller) *MockShortURLGenerator

NewMockShortURLGenerator creates a new mock instance.

func (*MockShortURLGenerator) EXPECT

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

func (*MockShortURLGenerator) Next

Next mocks base method.

type MockShortURLGeneratorMockRecorder

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

MockShortURLGeneratorMockRecorder is the mock recorder for MockShortURLGenerator.

func (*MockShortURLGeneratorMockRecorder) Next

func (mr *MockShortURLGeneratorMockRecorder) Next(ctx interface{}) *gomock.Call

Next indicates an expected call of Next.

type MockShortenerService

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

MockShortenerService is a mock of ShortenerService interface.

func NewMockShortenerService

func NewMockShortenerService(ctrl *gomock.Controller) *MockShortenerService

NewMockShortenerService creates a new mock instance.

func (*MockShortenerService) Create

func (m *MockShortenerService) Create(ctx context.Context, longURL string) (string, error)

Create mocks base method.

func (*MockShortenerService) Delete

func (m *MockShortenerService) Delete(ctx context.Context, shortURL string) error

Delete mocks base method.

func (*MockShortenerService) EXPECT

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

func (*MockShortenerService) Find

func (m *MockShortenerService) Find(ctx context.Context, shortURL string) (string, error)

Find mocks base method.

type MockShortenerServiceMockRecorder

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

MockShortenerServiceMockRecorder is the mock recorder for MockShortenerService.

func (*MockShortenerServiceMockRecorder) Create

func (mr *MockShortenerServiceMockRecorder) Create(ctx, longURL interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockShortenerServiceMockRecorder) Delete

func (mr *MockShortenerServiceMockRecorder) Delete(ctx, shortURL interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockShortenerServiceMockRecorder) Find

func (mr *MockShortenerServiceMockRecorder) Find(ctx, shortURL interface{}) *gomock.Call

Find indicates an expected call of Find.

Jump to

Keyboard shortcuts

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