mock

package
v0.0.0-...-8edc08b Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Code generated by MockGen. DO NOT EDIT. Source: github.com/nightlord189/ca-url-shortener/internal/usecase/adapters (interfaces: ICache)

Generated by this command:

mockgen -destination=../mock/icache.go -package=mock github.com/nightlord189/ca-url-shortener/internal/usecase/adapters ICache

Package mock is a generated GoMock package.

Code generated by MockGen. DO NOT EDIT. Source: github.com/nightlord189/ca-url-shortener/internal/usecase/adapters (interfaces: IStorage)

Generated by this command:

mockgen -destination=../mock/istorage.go -package=mock github.com/nightlord189/ca-url-shortener/internal/usecase/adapters IStorage

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 MockICache

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

MockICache is a mock of ICache interface.

func NewMockICache

func NewMockICache(ctrl *gomock.Controller) *MockICache

NewMockICache creates a new mock instance.

func (*MockICache) EXPECT

func (m *MockICache) EXPECT() *MockICacheMockRecorder

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

func (m *MockICache) GetLink(arg0 context.Context, arg1 string) (string, error)

GetLink mocks base method.

func (m *MockICache) PutLink(arg0 context.Context, arg1, arg2 string) error

PutLink mocks base method.

type MockICacheMockRecorder

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

MockICacheMockRecorder is the mock recorder for MockICache.

func (mr *MockICacheMockRecorder) GetLink(arg0, arg1 any) *gomock.Call

GetLink indicates an expected call of GetLink.

func (mr *MockICacheMockRecorder) PutLink(arg0, arg1, arg2 any) *gomock.Call

PutLink indicates an expected call of PutLink.

type MockIStorage

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

MockIStorage is a mock of IStorage interface.

func NewMockIStorage

func NewMockIStorage(ctrl *gomock.Controller) *MockIStorage

NewMockIStorage creates a new mock instance.

func (*MockIStorage) CreateUser

func (m *MockIStorage) CreateUser(arg0 context.Context, arg1 *entity.User) error

CreateUser mocks base method.

func (*MockIStorage) EXPECT

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

func (m *MockIStorage) GetLink(arg0 context.Context, arg1 string) (string, error)

GetLink mocks base method.

func (*MockIStorage) GetUserByUsername

func (m *MockIStorage) GetUserByUsername(arg0 context.Context, arg1 string) (*entity.User, error)

GetUserByUsername mocks base method.

func (m *MockIStorage) UpdateUserLinks(arg0 context.Context, arg1 *entity.User) error

UpdateUserLinks mocks base method.

type MockIStorageMockRecorder

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

MockIStorageMockRecorder is the mock recorder for MockIStorage.

func (*MockIStorageMockRecorder) CreateUser

func (mr *MockIStorageMockRecorder) CreateUser(arg0, arg1 any) *gomock.Call

CreateUser indicates an expected call of CreateUser.

func (mr *MockIStorageMockRecorder) GetLink(arg0, arg1 any) *gomock.Call

GetLink indicates an expected call of GetLink.

func (*MockIStorageMockRecorder) GetUserByUsername

func (mr *MockIStorageMockRecorder) GetUserByUsername(arg0, arg1 any) *gomock.Call

GetUserByUsername indicates an expected call of GetUserByUsername.

func (mr *MockIStorageMockRecorder) UpdateUserLinks(arg0, arg1 any) *gomock.Call

UpdateUserLinks indicates an expected call of UpdateUserLinks.

Jump to

Keyboard shortcuts

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