Documentation
¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockItemRepository
- func (m *MockItemRepository) Create(date time.Time, description, name, initials string) (*domain.Item, error)
- func (m *MockItemRepository) Delete(id int) (*domain.Item, error)
- func (m *MockItemRepository) EXPECT() *MockItemRepositoryMockRecorder
- func (m *MockItemRepository) Fetch(initials string) (*[]domain.Item, error)
- func (m *MockItemRepository) GetByID(id int) (*domain.Item, error)
- func (m *MockItemRepository) Update(id int, date time.Time, description, name, initials string) (*domain.Item, error)
- type MockItemRepositoryMockRecorder
- func (mr *MockItemRepositoryMockRecorder) Create(date, description, name, initials interface{}) *gomock.Call
- func (mr *MockItemRepositoryMockRecorder) Delete(id interface{}) *gomock.Call
- func (mr *MockItemRepositoryMockRecorder) Fetch(initials interface{}) *gomock.Call
- func (mr *MockItemRepositoryMockRecorder) GetByID(id interface{}) *gomock.Call
- func (mr *MockItemRepositoryMockRecorder) Update(id, date, description, name, initials interface{}) *gomock.Call
- type MockItemService
- func (m *MockItemService) CreateItem(response http.ResponseWriter, request *http.Request)
- func (m *MockItemService) DeleteItem(response http.ResponseWriter, request *http.Request)
- func (m *MockItemService) EXPECT() *MockItemServiceMockRecorder
- func (m *MockItemService) FetchItems(response http.ResponseWriter, request *http.Request)
- func (m *MockItemService) GetItemByID(response http.ResponseWriter, request *http.Request)
- func (m *MockItemService) UpdateItem(response http.ResponseWriter, request *http.Request)
- type MockItemServiceMockRecorder
- func (mr *MockItemServiceMockRecorder) CreateItem(response, request interface{}) *gomock.Call
- func (mr *MockItemServiceMockRecorder) DeleteItem(response, request interface{}) *gomock.Call
- func (mr *MockItemServiceMockRecorder) FetchItems(response, request interface{}) *gomock.Call
- func (mr *MockItemServiceMockRecorder) GetItemByID(response, request interface{}) *gomock.Call
- func (mr *MockItemServiceMockRecorder) UpdateItem(response, request interface{}) *gomock.Call
- type MockItemUsecase
- func (m *MockItemUsecase) Create(item domain.Item) (*domain.Item, error)
- func (m *MockItemUsecase) Delete(id int) (*domain.Item, error)
- func (m *MockItemUsecase) EXPECT() *MockItemUsecaseMockRecorder
- func (m *MockItemUsecase) Fetch(initials string) (*[]domain.Item, error)
- func (m *MockItemUsecase) GetByID(id int) (*domain.Item, error)
- func (m *MockItemUsecase) Update(item domain.Item) (*domain.Item, error)
- type MockItemUsecaseMockRecorder
- func (mr *MockItemUsecaseMockRecorder) Create(item interface{}) *gomock.Call
- func (mr *MockItemUsecaseMockRecorder) Delete(id interface{}) *gomock.Call
- func (mr *MockItemUsecaseMockRecorder) Fetch(initials interface{}) *gomock.Call
- func (mr *MockItemUsecaseMockRecorder) GetByID(id interface{}) *gomock.Call
- func (mr *MockItemUsecaseMockRecorder) Update(item interface{}) *gomock.Call
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 ¶
func (m *MockItemRepository) EXPECT() *MockItemRepositoryMockRecorder
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.
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 ¶
func (m *MockItemService) EXPECT() *MockItemServiceMockRecorder
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) Delete ¶
func (m *MockItemUsecase) Delete(id int) (*domain.Item, error)
Delete mocks base method.
func (*MockItemUsecase) EXPECT ¶
func (m *MockItemUsecase) EXPECT() *MockItemUsecaseMockRecorder
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.
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.