mock_repository

package
v0.0.0-...-cb82d97 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package mock_repository is a generated GoMock package.

Package mock_repository is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockProductRepository

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

MockProductRepository is a mock of ProductRepository interface.

func NewMockProductRepository

func NewMockProductRepository(ctrl *gomock.Controller) *MockProductRepository

NewMockProductRepository creates a new mock instance.

func (*MockProductRepository) Create

func (m *MockProductRepository) Create(user *domain.Product) error

Create mocks base method.

func (*MockProductRepository) Delete

func (m *MockProductRepository) Delete(id string) error

Delete mocks base method.

func (*MockProductRepository) EXPECT

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

func (*MockProductRepository) Get

Get mocks base method.

func (*MockProductRepository) List

func (m *MockProductRepository) List() ([]domain.Product, error)

List mocks base method.

type MockProductRepositoryMockRecorder

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

MockProductRepositoryMockRecorder is the mock recorder for MockProductRepository.

func (*MockProductRepositoryMockRecorder) Create

func (mr *MockProductRepositoryMockRecorder) Create(user interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockProductRepositoryMockRecorder) Delete

func (mr *MockProductRepositoryMockRecorder) Delete(id interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockProductRepositoryMockRecorder) Get

func (mr *MockProductRepositoryMockRecorder) Get(id interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockProductRepositoryMockRecorder) List

List indicates an expected call of List.

type MockUserRepository

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

MockUserRepository is a mock of UserRepository interface.

func NewMockUserRepository

func NewMockUserRepository(ctrl *gomock.Controller) *MockUserRepository

NewMockUserRepository creates a new mock instance.

func (*MockUserRepository) Create

func (m *MockUserRepository) Create(user *domain.User) error

Create mocks base method.

func (*MockUserRepository) Delete

func (m *MockUserRepository) Delete(id string) error

Delete mocks base method.

func (*MockUserRepository) EXPECT

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

func (*MockUserRepository) Get

func (m *MockUserRepository) Get(id string) (*domain.User, error)

Get mocks base method.

func (*MockUserRepository) List

func (m *MockUserRepository) List() ([]domain.User, error)

List mocks base method.

type MockUserRepositoryMockRecorder

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

MockUserRepositoryMockRecorder is the mock recorder for MockUserRepository.

func (*MockUserRepositoryMockRecorder) Create

func (mr *MockUserRepositoryMockRecorder) Create(user interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockUserRepositoryMockRecorder) Delete

func (mr *MockUserRepositoryMockRecorder) Delete(id interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockUserRepositoryMockRecorder) Get

func (mr *MockUserRepositoryMockRecorder) Get(id interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockUserRepositoryMockRecorder) List

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