mock_usecase

package
v0.0.0-...-e10dee8 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package mock_usecase is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockGenerator

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

MockGenerator is a mock of Generator interface.

func NewMockGenerator

func NewMockGenerator(ctrl *gomock.Controller) *MockGenerator

NewMockGenerator creates a new mock instance.

func (*MockGenerator) EXPECT

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

func (*MockGenerator) GenerateShortURL

func (m *MockGenerator) GenerateShortURL(url string) string

GenerateShortURL mocks base method.

type MockGeneratorMockRecorder

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

MockGeneratorMockRecorder is the mock recorder for MockGenerator.

func (*MockGeneratorMockRecorder) GenerateShortURL

func (mr *MockGeneratorMockRecorder) GenerateShortURL(url interface{}) *gomock.Call

GenerateShortURL indicates an expected call of GenerateShortURL.

type MockLinkRepository

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

MockLinkRepository is a mock of LinkRepository interface.

func NewMockLinkRepository

func NewMockLinkRepository(ctrl *gomock.Controller) *MockLinkRepository

NewMockLinkRepository creates a new mock instance.

func (*MockLinkRepository) EXPECT

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

func (m *MockLinkRepository) GetLink(ctx context.Context, token string) (*model.Link, error)

GetLink mocks base method.

func (*MockLinkRepository) GetLinkByOriginal

func (m *MockLinkRepository) GetLinkByOriginal(ctx context.Context, origLink string) (*model.Link, error)

GetLinkByOriginal mocks base method.

func (*MockLinkRepository) StartRecalculation

func (m *MockLinkRepository) StartRecalculation(interval time.Duration, deleted chan []string)

StartRecalculation mocks base method.

func (m *MockLinkRepository) StoreLink(ctx context.Context, link *model.Link) error

StoreLink mocks base method.

type MockLinkRepositoryMockRecorder

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

MockLinkRepositoryMockRecorder is the mock recorder for MockLinkRepository.

func (mr *MockLinkRepositoryMockRecorder) GetLink(ctx, token interface{}) *gomock.Call

GetLink indicates an expected call of GetLink.

func (*MockLinkRepositoryMockRecorder) GetLinkByOriginal

func (mr *MockLinkRepositoryMockRecorder) GetLinkByOriginal(ctx, origLink interface{}) *gomock.Call

GetLinkByOriginal indicates an expected call of GetLinkByOriginal.

func (*MockLinkRepositoryMockRecorder) StartRecalculation

func (mr *MockLinkRepositoryMockRecorder) StartRecalculation(interval, deleted interface{}) *gomock.Call

StartRecalculation indicates an expected call of StartRecalculation.

func (mr *MockLinkRepositoryMockRecorder) StoreLink(ctx, link interface{}) *gomock.Call

StoreLink indicates an expected call of StoreLink.

Jump to

Keyboard shortcuts

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