PiwigoDirectoryUploader/internal/pkg/images/piwigo_mock_test.go

147 lines
5.0 KiB
Go
Raw Normal View History

2019-03-21 22:37:08 +01:00
// Code generated by MockGen. DO NOT EDIT.
// Source: git.haefelfinger.net/piwigo/PiwigoDirectoryUploader/internal/pkg/piwigo (interfaces: CategoryApi,ImageApi)
2019-03-21 22:37:08 +01:00
2019-04-02 22:56:04 +02:00
// Package images is a generated GoMock package.
2019-04-02 21:45:46 +02:00
package images
2019-03-21 22:37:08 +01:00
import (
piwigo "git.haefelfinger.net/piwigo/PiwigoDirectoryUploader/internal/pkg/piwigo"
gomock "github.com/golang/mock/gomock"
reflect "reflect"
)
// MockCategoryApi is a mock of CategoryApi interface
type MockCategoryApi struct {
2019-03-21 22:37:08 +01:00
ctrl *gomock.Controller
recorder *MockCategoryApiMockRecorder
2019-03-21 22:37:08 +01:00
}
// MockCategoryApiMockRecorder is the mock recorder for MockCategoryApi
type MockCategoryApiMockRecorder struct {
mock *MockCategoryApi
2019-03-21 22:37:08 +01:00
}
// NewMockCategoryApi creates a new mock instance
func NewMockCategoryApi(ctrl *gomock.Controller) *MockCategoryApi {
mock := &MockCategoryApi{ctrl: ctrl}
mock.recorder = &MockCategoryApiMockRecorder{mock}
2019-03-21 22:37:08 +01:00
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockCategoryApi) EXPECT() *MockCategoryApiMockRecorder {
2019-03-21 22:37:08 +01:00
return m.recorder
}
// CreateCategory mocks base method
func (m *MockCategoryApi) CreateCategory(arg0 int, arg1 string) (int, error) {
2019-03-21 22:37:08 +01:00
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "CreateCategory", arg0, arg1)
ret0, _ := ret[0].(int)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// CreateCategory indicates an expected call of CreateCategory
func (mr *MockCategoryApiMockRecorder) CreateCategory(arg0, arg1 interface{}) *gomock.Call {
2019-03-21 22:37:08 +01:00
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateCategory", reflect.TypeOf((*MockCategoryApi)(nil).CreateCategory), arg0, arg1)
2019-03-21 22:37:08 +01:00
}
// GetAllCategories mocks base method
func (m *MockCategoryApi) GetAllCategories() (map[string]*piwigo.Category, error) {
2019-03-21 22:37:08 +01:00
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetAllCategories")
ret0, _ := ret[0].(map[string]*piwigo.Category)
2019-03-21 22:37:08 +01:00
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetAllCategories indicates an expected call of GetAllCategories
func (mr *MockCategoryApiMockRecorder) GetAllCategories() *gomock.Call {
2019-03-21 22:37:08 +01:00
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAllCategories", reflect.TypeOf((*MockCategoryApi)(nil).GetAllCategories))
2019-03-21 22:37:08 +01:00
}
// MockImageApi is a mock of ImageApi interface
type MockImageApi struct {
2019-03-21 22:37:08 +01:00
ctrl *gomock.Controller
recorder *MockImageApiMockRecorder
2019-03-21 22:37:08 +01:00
}
// MockImageApiMockRecorder is the mock recorder for MockImageApi
type MockImageApiMockRecorder struct {
mock *MockImageApi
2019-03-21 22:37:08 +01:00
}
// NewMockImageApi creates a new mock instance
func NewMockImageApi(ctrl *gomock.Controller) *MockImageApi {
mock := &MockImageApi{ctrl: ctrl}
mock.recorder = &MockImageApiMockRecorder{mock}
2019-03-21 22:37:08 +01:00
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockImageApi) EXPECT() *MockImageApiMockRecorder {
2019-03-21 22:37:08 +01:00
return m.recorder
}
// DeleteImages mocks base method
func (m *MockImageApi) DeleteImages(arg0 []int) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DeleteImages", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// DeleteImages indicates an expected call of DeleteImages
func (mr *MockImageApiMockRecorder) DeleteImages(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteImages", reflect.TypeOf((*MockImageApi)(nil).DeleteImages), arg0)
}
2019-03-21 22:37:08 +01:00
// ImageCheckFile mocks base method
func (m *MockImageApi) ImageCheckFile(arg0 int, arg1 string) (int, error) {
2019-03-21 22:37:08 +01:00
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ImageCheckFile", arg0, arg1)
ret0, _ := ret[0].(int)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ImageCheckFile indicates an expected call of ImageCheckFile
func (mr *MockImageApiMockRecorder) ImageCheckFile(arg0, arg1 interface{}) *gomock.Call {
2019-03-21 22:37:08 +01:00
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ImageCheckFile", reflect.TypeOf((*MockImageApi)(nil).ImageCheckFile), arg0, arg1)
2019-03-21 22:37:08 +01:00
}
// ImagesExistOnPiwigo mocks base method
func (m *MockImageApi) ImagesExistOnPiwigo(arg0 []string) (map[string]int, error) {
2019-03-21 22:37:08 +01:00
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ImagesExistOnPiwigo", arg0)
ret0, _ := ret[0].(map[string]int)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ImagesExistOnPiwigo indicates an expected call of ImagesExistOnPiwigo
func (mr *MockImageApiMockRecorder) ImagesExistOnPiwigo(arg0 interface{}) *gomock.Call {
2019-03-21 22:37:08 +01:00
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ImagesExistOnPiwigo", reflect.TypeOf((*MockImageApi)(nil).ImagesExistOnPiwigo), arg0)
2019-03-21 22:37:08 +01:00
}
// UploadImage mocks base method
func (m *MockImageApi) UploadImage(arg0 int, arg1, arg2 string, arg3 int) (int, error) {
2019-03-21 22:37:08 +01:00
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "UploadImage", arg0, arg1, arg2, arg3)
ret0, _ := ret[0].(int)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// UploadImage indicates an expected call of UploadImage
func (mr *MockImageApiMockRecorder) UploadImage(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
2019-03-21 22:37:08 +01:00
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UploadImage", reflect.TypeOf((*MockImageApi)(nil).UploadImage), arg0, arg1, arg2, arg3)
2019-03-21 22:37:08 +01:00
}