2019-03-21 22:37:08 +01:00
|
|
|
// Code generated by MockGen. DO NOT EDIT.
|
2019-04-09 00:05:02 +02:00
|
|
|
// 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"
|
|
|
|
)
|
|
|
|
|
2019-04-09 00:05:02 +02:00
|
|
|
// MockCategoryApi is a mock of CategoryApi interface
|
|
|
|
type MockCategoryApi struct {
|
2019-03-21 22:37:08 +01:00
|
|
|
ctrl *gomock.Controller
|
2019-04-09 00:05:02 +02:00
|
|
|
recorder *MockCategoryApiMockRecorder
|
2019-03-21 22:37:08 +01:00
|
|
|
}
|
|
|
|
|
2019-04-09 00:05:02 +02:00
|
|
|
// MockCategoryApiMockRecorder is the mock recorder for MockCategoryApi
|
|
|
|
type MockCategoryApiMockRecorder struct {
|
|
|
|
mock *MockCategoryApi
|
2019-03-21 22:37:08 +01:00
|
|
|
}
|
|
|
|
|
2019-04-09 00:05:02 +02: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
|
2019-04-09 00:05:02 +02:00
|
|
|
func (m *MockCategoryApi) EXPECT() *MockCategoryApiMockRecorder {
|
2019-03-21 22:37:08 +01:00
|
|
|
return m.recorder
|
|
|
|
}
|
|
|
|
|
|
|
|
// CreateCategory mocks base method
|
2019-04-09 00:05:02 +02:00
|
|
|
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
|
2019-04-09 00:05:02 +02:00
|
|
|
func (mr *MockCategoryApiMockRecorder) CreateCategory(arg0, arg1 interface{}) *gomock.Call {
|
2019-03-21 22:37:08 +01:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2019-04-09 00:05:02 +02:00
|
|
|
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
|
2019-04-09 00:05:02 +02:00
|
|
|
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")
|
2019-04-08 23:56:01 +02:00
|
|
|
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
|
2019-04-09 00:05:02 +02:00
|
|
|
func (mr *MockCategoryApiMockRecorder) GetAllCategories() *gomock.Call {
|
2019-03-21 22:37:08 +01:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2019-04-09 00:05:02 +02:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAllCategories", reflect.TypeOf((*MockCategoryApi)(nil).GetAllCategories))
|
2019-03-21 22:37:08 +01:00
|
|
|
}
|
|
|
|
|
2019-04-09 00:05:02 +02:00
|
|
|
// MockImageApi is a mock of ImageApi interface
|
|
|
|
type MockImageApi struct {
|
2019-03-21 22:37:08 +01:00
|
|
|
ctrl *gomock.Controller
|
2019-04-09 00:05:02 +02:00
|
|
|
recorder *MockImageApiMockRecorder
|
2019-03-21 22:37:08 +01:00
|
|
|
}
|
|
|
|
|
2019-04-09 00:05:02 +02:00
|
|
|
// MockImageApiMockRecorder is the mock recorder for MockImageApi
|
|
|
|
type MockImageApiMockRecorder struct {
|
|
|
|
mock *MockImageApi
|
2019-03-21 22:37:08 +01:00
|
|
|
}
|
|
|
|
|
2019-04-09 00:05:02 +02: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
|
2019-04-09 00:05:02 +02:00
|
|
|
func (m *MockImageApi) EXPECT() *MockImageApiMockRecorder {
|
2019-03-21 22:37:08 +01:00
|
|
|
return m.recorder
|
|
|
|
}
|
|
|
|
|
2019-03-24 23:07:59 +01:00
|
|
|
// DeleteImages mocks base method
|
2019-04-09 00:05:02 +02:00
|
|
|
func (m *MockImageApi) DeleteImages(arg0 []int) error {
|
2019-03-24 23:07:59 +01:00
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "DeleteImages", arg0)
|
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
// DeleteImages indicates an expected call of DeleteImages
|
2019-04-09 00:05:02 +02:00
|
|
|
func (mr *MockImageApiMockRecorder) DeleteImages(arg0 interface{}) *gomock.Call {
|
2019-03-24 23:07:59 +01:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2019-04-09 00:05:02 +02:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteImages", reflect.TypeOf((*MockImageApi)(nil).DeleteImages), arg0)
|
2019-03-24 23:07:59 +01:00
|
|
|
}
|
|
|
|
|
2019-03-21 22:37:08 +01:00
|
|
|
// ImageCheckFile mocks base method
|
2019-04-09 00:05:02 +02:00
|
|
|
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
|
2019-04-09 00:05:02 +02:00
|
|
|
func (mr *MockImageApiMockRecorder) ImageCheckFile(arg0, arg1 interface{}) *gomock.Call {
|
2019-03-21 22:37:08 +01:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2019-04-09 00:05:02 +02:00
|
|
|
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
|
2019-04-09 00:05:02 +02:00
|
|
|
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
|
2019-04-09 00:05:02 +02:00
|
|
|
func (mr *MockImageApiMockRecorder) ImagesExistOnPiwigo(arg0 interface{}) *gomock.Call {
|
2019-03-21 22:37:08 +01:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2019-04-09 00:05:02 +02:00
|
|
|
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
|
2019-04-09 00:05:02 +02:00
|
|
|
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
|
2019-04-09 00:05:02 +02:00
|
|
|
func (mr *MockImageApiMockRecorder) UploadImage(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
|
2019-03-21 22:37:08 +01:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2019-04-09 00:05:02 +02:00
|
|
|
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
|
|
|
}
|