mocks

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: May 11, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockItemRepository

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

MockItemRepository is a mock of ItemRepository interface.

func NewMockItemRepository

func NewMockItemRepository(ctrl *gomock.Controller) *MockItemRepository

NewMockItemRepository creates a new mock instance.

func (*MockItemRepository) Create

func (m *MockItemRepository) Create(date time.Time, description, name, initials string) (*domain.Item, error)

Create mocks base method.

func (*MockItemRepository) Delete

func (m *MockItemRepository) Delete(id int) (*domain.Item, error)

Delete mocks base method.

func (*MockItemRepository) EXPECT

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

func (*MockItemRepository) Fetch

func (m *MockItemRepository) Fetch(initials string) (*[]domain.Item, error)

Fetch mocks base method.

func (*MockItemRepository) GetByID

func (m *MockItemRepository) GetByID(id int) (*domain.Item, error)

GetByID mocks base method.

func (*MockItemRepository) Update

func (m *MockItemRepository) Update(id int, date time.Time, description, name, initials string) (*domain.Item, error)

Update mocks base method.

type MockItemRepositoryMockRecorder

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

MockItemRepositoryMockRecorder is the mock recorder for MockItemRepository.

func (*MockItemRepositoryMockRecorder) Create

func (mr *MockItemRepositoryMockRecorder) Create(date, description, name, initials interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockItemRepositoryMockRecorder) Delete

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

Delete indicates an expected call of Delete.

func (*MockItemRepositoryMockRecorder) Fetch

func (mr *MockItemRepositoryMockRecorder) Fetch(initials interface{}) *gomock.Call

Fetch indicates an expected call of Fetch.

func (*MockItemRepositoryMockRecorder) GetByID

func (mr *MockItemRepositoryMockRecorder) GetByID(id interface{}) *gomock.Call

GetByID indicates an expected call of GetByID.

func (*MockItemRepositoryMockRecorder) Update

func (mr *MockItemRepositoryMockRecorder) Update(id, date, description, name, initials interface{}) *gomock.Call

Update indicates an expected call of Update.

type MockItemService

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

MockItemService is a mock of ItemService interface.

func NewMockItemService

func NewMockItemService(ctrl *gomock.Controller) *MockItemService

NewMockItemService creates a new mock instance.

func (*MockItemService) CreateItem

func (m *MockItemService) CreateItem(response http.ResponseWriter, request *http.Request)

CreateItem mocks base method.

func (*MockItemService) DeleteItem

func (m *MockItemService) DeleteItem(response http.ResponseWriter, request *http.Request)

DeleteItem mocks base method.

func (*MockItemService) EXPECT

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

func (*MockItemService) FetchItems

func (m *MockItemService) FetchItems(response http.ResponseWriter, request *http.Request)

FetchItems mocks base method.

func (*MockItemService) GetItemByID

func (m *MockItemService) GetItemByID(response http.ResponseWriter, request *http.Request)

GetItemByID mocks base method.

func (*MockItemService) UpdateItem

func (m *MockItemService) UpdateItem(response http.ResponseWriter, request *http.Request)

UpdateItem mocks base method.

type MockItemServiceMockRecorder

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

MockItemServiceMockRecorder is the mock recorder for MockItemService.

func (*MockItemServiceMockRecorder) CreateItem

func (mr *MockItemServiceMockRecorder) CreateItem(response, request interface{}) *gomock.Call

CreateItem indicates an expected call of CreateItem.

func (*MockItemServiceMockRecorder) DeleteItem

func (mr *MockItemServiceMockRecorder) DeleteItem(response, request interface{}) *gomock.Call

DeleteItem indicates an expected call of DeleteItem.

func (*MockItemServiceMockRecorder) FetchItems

func (mr *MockItemServiceMockRecorder) FetchItems(response, request interface{}) *gomock.Call

FetchItems indicates an expected call of FetchItems.

func (*MockItemServiceMockRecorder) GetItemByID

func (mr *MockItemServiceMockRecorder) GetItemByID(response, request interface{}) *gomock.Call

GetItemByID indicates an expected call of GetItemByID.

func (*MockItemServiceMockRecorder) UpdateItem

func (mr *MockItemServiceMockRecorder) UpdateItem(response, request interface{}) *gomock.Call

UpdateItem indicates an expected call of UpdateItem.

type MockItemUsecase

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

MockItemUsecase is a mock of ItemUsecase interface.

func NewMockItemUsecase

func NewMockItemUsecase(ctrl *gomock.Controller) *MockItemUsecase

NewMockItemUsecase creates a new mock instance.

func (*MockItemUsecase) Create

func (m *MockItemUsecase) Create(item domain.Item) (*domain.Item, error)

Create mocks base method.

func (*MockItemUsecase) Delete

func (m *MockItemUsecase) Delete(id int) (*domain.Item, error)

Delete mocks base method.

func (*MockItemUsecase) EXPECT

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

func (*MockItemUsecase) Fetch

func (m *MockItemUsecase) Fetch(initials string) (*[]domain.Item, error)

Fetch mocks base method.

func (*MockItemUsecase) GetByID

func (m *MockItemUsecase) GetByID(id int) (*domain.Item, error)

GetByID mocks base method.

func (*MockItemUsecase) Update

func (m *MockItemUsecase) Update(item domain.Item) (*domain.Item, error)

Update mocks base method.

type MockItemUsecaseMockRecorder

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

MockItemUsecaseMockRecorder is the mock recorder for MockItemUsecase.

func (*MockItemUsecaseMockRecorder) Create

func (mr *MockItemUsecaseMockRecorder) Create(item interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockItemUsecaseMockRecorder) Delete

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

Delete indicates an expected call of Delete.

func (*MockItemUsecaseMockRecorder) Fetch

func (mr *MockItemUsecaseMockRecorder) Fetch(initials interface{}) *gomock.Call

Fetch indicates an expected call of Fetch.

func (*MockItemUsecaseMockRecorder) GetByID

func (mr *MockItemUsecaseMockRecorder) GetByID(id interface{}) *gomock.Call

GetByID indicates an expected call of GetByID.

func (*MockItemUsecaseMockRecorder) Update

func (mr *MockItemUsecaseMockRecorder) Update(item interface{}) *gomock.Call

Update indicates an expected call of Update.

Jump to

Keyboard shortcuts

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