mock_service

package
v0.0.0-...-ed4837c Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package mock_service is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockURLShortenerService

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

MockURLShortenerService is a mock of URLShortenerService interface.

func NewMockURLShortenerService

func NewMockURLShortenerService(ctrl *gomock.Controller) *MockURLShortenerService

NewMockURLShortenerService creates a new mock instance.

func (*MockURLShortenerService) Close

func (m *MockURLShortenerService) Close() error

Close mocks base method.

func (*MockURLShortenerService) Delete

func (m *MockURLShortenerService) Delete(ctx context.Context, user *uuid.UUID, ids []string)

Delete mocks base method.

func (*MockURLShortenerService) EXPECT

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

func (*MockURLShortenerService) GetUserStorage

func (m *MockURLShortenerService) GetUserStorage(ctx context.Context, user *uuid.UUID, defURL string) (map[string]string, error)

GetUserStorage mocks base method.

func (*MockURLShortenerService) Ping

Ping mocks base method.

func (*MockURLShortenerService) Restore

func (m *MockURLShortenerService) Restore(ctx context.Context, id string) (string, error)

Restore mocks base method.

func (*MockURLShortenerService) Statistics

Statistics mocks base method.

func (*MockURLShortenerService) Store

func (m *MockURLShortenerService) Store(ctx context.Context, user *uuid.UUID, longURL string) (string, error)

Store mocks base method.

func (*MockURLShortenerService) StoreBatch

func (m *MockURLShortenerService) StoreBatch(ctx context.Context, user *uuid.UUID, batchIn models.BatchList, defURL string) (models.BatchList, error)

StoreBatch mocks base method.

type MockURLShortenerServiceMockRecorder

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

MockURLShortenerServiceMockRecorder is the mock recorder for MockURLShortenerService.

func (*MockURLShortenerServiceMockRecorder) Close

Close indicates an expected call of Close.

func (*MockURLShortenerServiceMockRecorder) Delete

func (mr *MockURLShortenerServiceMockRecorder) Delete(ctx, user, ids interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockURLShortenerServiceMockRecorder) GetUserStorage

func (mr *MockURLShortenerServiceMockRecorder) GetUserStorage(ctx, user, defURL interface{}) *gomock.Call

GetUserStorage indicates an expected call of GetUserStorage.

func (*MockURLShortenerServiceMockRecorder) Ping

func (mr *MockURLShortenerServiceMockRecorder) Ping(arg0 interface{}) *gomock.Call

Ping indicates an expected call of Ping.

func (*MockURLShortenerServiceMockRecorder) Restore

func (mr *MockURLShortenerServiceMockRecorder) Restore(ctx, id interface{}) *gomock.Call

Restore indicates an expected call of Restore.

func (*MockURLShortenerServiceMockRecorder) Statistics

func (mr *MockURLShortenerServiceMockRecorder) Statistics(ctx interface{}) *gomock.Call

Statistics indicates an expected call of Statistics.

func (*MockURLShortenerServiceMockRecorder) Store

func (mr *MockURLShortenerServiceMockRecorder) Store(ctx, user, longURL interface{}) *gomock.Call

Store indicates an expected call of Store.

func (*MockURLShortenerServiceMockRecorder) StoreBatch

func (mr *MockURLShortenerServiceMockRecorder) StoreBatch(ctx, user, batchIn, defURL interface{}) *gomock.Call

StoreBatch indicates an expected call of StoreBatch.

Jump to

Keyboard shortcuts

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