PiwigoDirectoryUploader/internal/pkg/images/datastore_mock_test.go

219 lines
8.6 KiB
Go
Raw Normal View History

2019-03-21 22:37:16 +01:00
// Code generated by MockGen. DO NOT EDIT.
// Source: git.haefelfinger.net/piwigo/PiwigoDirectoryUploader/internal/pkg/datastore (interfaces: ImageMetadataProvider,CategoryProvider)
2019-03-21 22:37:16 +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:16 +01:00
import (
datastore "git.haefelfinger.net/piwigo/PiwigoDirectoryUploader/internal/pkg/datastore"
2019-03-21 22:37:16 +01:00
gomock "github.com/golang/mock/gomock"
reflect "reflect"
)
// MockImageMetadataProvider is a mock of ImageMetadataProvider interface
type MockImageMetadataProvider struct {
ctrl *gomock.Controller
recorder *MockImageMetadataProviderMockRecorder
}
// MockImageMetadataProviderMockRecorder is the mock recorder for MockImageMetadataProvider
type MockImageMetadataProviderMockRecorder struct {
mock *MockImageMetadataProvider
}
// NewMockImageMetadataProvider creates a new mock instance
func NewMockImageMetadataProvider(ctrl *gomock.Controller) *MockImageMetadataProvider {
mock := &MockImageMetadataProvider{ctrl: ctrl}
mock.recorder = &MockImageMetadataProviderMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockImageMetadataProvider) EXPECT() *MockImageMetadataProviderMockRecorder {
return m.recorder
}
// DeleteMarkedImages mocks base method
func (m *MockImageMetadataProvider) DeleteMarkedImages() error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DeleteMarkedImages")
ret0, _ := ret[0].(error)
return ret0
}
// DeleteMarkedImages indicates an expected call of DeleteMarkedImages
func (mr *MockImageMetadataProviderMockRecorder) DeleteMarkedImages() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteMarkedImages", reflect.TypeOf((*MockImageMetadataProvider)(nil).DeleteMarkedImages))
}
2019-03-21 22:37:16 +01:00
// ImageMetadata mocks base method
func (m *MockImageMetadataProvider) ImageMetadata(arg0 string) (datastore.ImageMetaData, error) {
2019-03-21 22:37:16 +01:00
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ImageMetadata", arg0)
ret0, _ := ret[0].(datastore.ImageMetaData)
2019-03-21 22:37:16 +01:00
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ImageMetadata indicates an expected call of ImageMetadata
func (mr *MockImageMetadataProviderMockRecorder) ImageMetadata(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ImageMetadata", reflect.TypeOf((*MockImageMetadataProvider)(nil).ImageMetadata), arg0)
}
2019-03-23 23:55:55 +01:00
// ImageMetadataAll mocks base method
func (m *MockImageMetadataProvider) ImageMetadataAll() ([]datastore.ImageMetaData, error) {
2019-03-23 23:55:55 +01:00
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ImageMetadataAll")
ret0, _ := ret[0].([]datastore.ImageMetaData)
2019-03-23 23:55:55 +01:00
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ImageMetadataAll indicates an expected call of ImageMetadataAll
func (mr *MockImageMetadataProviderMockRecorder) ImageMetadataAll() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ImageMetadataAll", reflect.TypeOf((*MockImageMetadataProvider)(nil).ImageMetadataAll))
}
// ImageMetadataToDelete mocks base method
func (m *MockImageMetadataProvider) ImageMetadataToDelete() ([]datastore.ImageMetaData, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ImageMetadataToDelete")
ret0, _ := ret[0].([]datastore.ImageMetaData)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ImageMetadataToDelete indicates an expected call of ImageMetadataToDelete
func (mr *MockImageMetadataProviderMockRecorder) ImageMetadataToDelete() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ImageMetadataToDelete", reflect.TypeOf((*MockImageMetadataProvider)(nil).ImageMetadataToDelete))
}
2019-03-21 22:37:16 +01:00
// ImageMetadataToUpload mocks base method
func (m *MockImageMetadataProvider) ImageMetadataToUpload() ([]datastore.ImageMetaData, error) {
2019-03-21 22:37:16 +01:00
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ImageMetadataToUpload")
ret0, _ := ret[0].([]datastore.ImageMetaData)
2019-03-21 22:37:16 +01:00
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ImageMetadataToUpload indicates an expected call of ImageMetadataToUpload
func (mr *MockImageMetadataProviderMockRecorder) ImageMetadataToUpload() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ImageMetadataToUpload", reflect.TypeOf((*MockImageMetadataProvider)(nil).ImageMetadataToUpload))
}
// SaveImageMetadata mocks base method
func (m *MockImageMetadataProvider) SaveImageMetadata(arg0 datastore.ImageMetaData) error {
2019-03-21 22:37:16 +01:00
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SaveImageMetadata", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// SaveImageMetadata indicates an expected call of SaveImageMetadata
func (mr *MockImageMetadataProviderMockRecorder) SaveImageMetadata(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SaveImageMetadata", reflect.TypeOf((*MockImageMetadataProvider)(nil).SaveImageMetadata), arg0)
}
// SavePiwigoIdAndUpdateUploadFlag mocks base method
func (m *MockImageMetadataProvider) SavePiwigoIdAndUpdateUploadFlag(arg0 string, arg1 int) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SavePiwigoIdAndUpdateUploadFlag", arg0, arg1)
ret0, _ := ret[0].(error)
return ret0
}
// SavePiwigoIdAndUpdateUploadFlag indicates an expected call of SavePiwigoIdAndUpdateUploadFlag
func (mr *MockImageMetadataProviderMockRecorder) SavePiwigoIdAndUpdateUploadFlag(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SavePiwigoIdAndUpdateUploadFlag", reflect.TypeOf((*MockImageMetadataProvider)(nil).SavePiwigoIdAndUpdateUploadFlag), arg0, arg1)
}
// MockCategoryProvider is a mock of CategoryProvider interface
type MockCategoryProvider struct {
ctrl *gomock.Controller
recorder *MockCategoryProviderMockRecorder
}
// MockCategoryProviderMockRecorder is the mock recorder for MockCategoryProvider
type MockCategoryProviderMockRecorder struct {
mock *MockCategoryProvider
}
// NewMockCategoryProvider creates a new mock instance
func NewMockCategoryProvider(ctrl *gomock.Controller) *MockCategoryProvider {
mock := &MockCategoryProvider{ctrl: ctrl}
mock.recorder = &MockCategoryProviderMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockCategoryProvider) EXPECT() *MockCategoryProviderMockRecorder {
return m.recorder
}
// GetCategoriesToCreate mocks base method
func (m *MockCategoryProvider) GetCategoriesToCreate() ([]datastore.CategoryData, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetCategoriesToCreate")
ret0, _ := ret[0].([]datastore.CategoryData)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetCategoriesToCreate indicates an expected call of GetCategoriesToCreate
func (mr *MockCategoryProviderMockRecorder) GetCategoriesToCreate() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCategoriesToCreate", reflect.TypeOf((*MockCategoryProvider)(nil).GetCategoriesToCreate))
}
// GetCategoryByKey mocks base method
func (m *MockCategoryProvider) GetCategoryByKey(arg0 string) (datastore.CategoryData, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetCategoryByKey", arg0)
ret0, _ := ret[0].(datastore.CategoryData)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetCategoryByKey indicates an expected call of GetCategoryByKey
func (mr *MockCategoryProviderMockRecorder) GetCategoryByKey(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCategoryByKey", reflect.TypeOf((*MockCategoryProvider)(nil).GetCategoryByKey), arg0)
}
// GetCategoryByPiwigoId mocks base method
func (m *MockCategoryProvider) GetCategoryByPiwigoId(arg0 int) (datastore.CategoryData, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetCategoryByPiwigoId", arg0)
ret0, _ := ret[0].(datastore.CategoryData)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetCategoryByPiwigoId indicates an expected call of GetCategoryByPiwigoId
func (mr *MockCategoryProviderMockRecorder) GetCategoryByPiwigoId(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCategoryByPiwigoId", reflect.TypeOf((*MockCategoryProvider)(nil).GetCategoryByPiwigoId), arg0)
}
// SaveCategory mocks base method
func (m *MockCategoryProvider) SaveCategory(arg0 datastore.CategoryData) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SaveCategory", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// SaveCategory indicates an expected call of SaveCategory
func (mr *MockCategoryProviderMockRecorder) SaveCategory(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SaveCategory", reflect.TypeOf((*MockCategoryProvider)(nil).SaveCategory), arg0)
}