mirror of https://github.com/stashapp/stash.git
129 lines
2.5 KiB
Go
129 lines
2.5 KiB
Go
|
// Code generated by mockery v0.0.0-dev. DO NOT EDIT.
|
||
|
|
||
|
package mocks
|
||
|
|
||
|
import (
|
||
|
models "github.com/stashapp/stash/pkg/models"
|
||
|
mock "github.com/stretchr/testify/mock"
|
||
|
)
|
||
|
|
||
|
// MovieReaderWriter is an autogenerated mock type for the MovieReaderWriter type
|
||
|
type MovieReaderWriter struct {
|
||
|
mock.Mock
|
||
|
}
|
||
|
|
||
|
// All provides a mock function with given fields:
|
||
|
func (_m *MovieReaderWriter) All() ([]*models.Movie, error) {
|
||
|
ret := _m.Called()
|
||
|
|
||
|
var r0 []*models.Movie
|
||
|
if rf, ok := ret.Get(0).(func() []*models.Movie); ok {
|
||
|
r0 = rf()
|
||
|
} else {
|
||
|
if ret.Get(0) != nil {
|
||
|
r0 = ret.Get(0).([]*models.Movie)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
var r1 error
|
||
|
if rf, ok := ret.Get(1).(func() error); ok {
|
||
|
r1 = rf()
|
||
|
} else {
|
||
|
r1 = ret.Error(1)
|
||
|
}
|
||
|
|
||
|
return r0, r1
|
||
|
}
|
||
|
|
||
|
// Find provides a mock function with given fields: id
|
||
|
func (_m *MovieReaderWriter) Find(id int) (*models.Movie, error) {
|
||
|
ret := _m.Called(id)
|
||
|
|
||
|
var r0 *models.Movie
|
||
|
if rf, ok := ret.Get(0).(func(int) *models.Movie); ok {
|
||
|
r0 = rf(id)
|
||
|
} else {
|
||
|
if ret.Get(0) != nil {
|
||
|
r0 = ret.Get(0).(*models.Movie)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
var r1 error
|
||
|
if rf, ok := ret.Get(1).(func(int) error); ok {
|
||
|
r1 = rf(id)
|
||
|
} else {
|
||
|
r1 = ret.Error(1)
|
||
|
}
|
||
|
|
||
|
return r0, r1
|
||
|
}
|
||
|
|
||
|
// FindMany provides a mock function with given fields: ids
|
||
|
func (_m *MovieReaderWriter) FindMany(ids []int) ([]*models.Movie, error) {
|
||
|
ret := _m.Called(ids)
|
||
|
|
||
|
var r0 []*models.Movie
|
||
|
if rf, ok := ret.Get(0).(func([]int) []*models.Movie); ok {
|
||
|
r0 = rf(ids)
|
||
|
} else {
|
||
|
if ret.Get(0) != nil {
|
||
|
r0 = ret.Get(0).([]*models.Movie)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
var r1 error
|
||
|
if rf, ok := ret.Get(1).(func([]int) error); ok {
|
||
|
r1 = rf(ids)
|
||
|
} else {
|
||
|
r1 = ret.Error(1)
|
||
|
}
|
||
|
|
||
|
return r0, r1
|
||
|
}
|
||
|
|
||
|
// GetBackImage provides a mock function with given fields: movieID
|
||
|
func (_m *MovieReaderWriter) GetBackImage(movieID int) ([]byte, error) {
|
||
|
ret := _m.Called(movieID)
|
||
|
|
||
|
var r0 []byte
|
||
|
if rf, ok := ret.Get(0).(func(int) []byte); ok {
|
||
|
r0 = rf(movieID)
|
||
|
} else {
|
||
|
if ret.Get(0) != nil {
|
||
|
r0 = ret.Get(0).([]byte)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
var r1 error
|
||
|
if rf, ok := ret.Get(1).(func(int) error); ok {
|
||
|
r1 = rf(movieID)
|
||
|
} else {
|
||
|
r1 = ret.Error(1)
|
||
|
}
|
||
|
|
||
|
return r0, r1
|
||
|
}
|
||
|
|
||
|
// GetFrontImage provides a mock function with given fields: movieID
|
||
|
func (_m *MovieReaderWriter) GetFrontImage(movieID int) ([]byte, error) {
|
||
|
ret := _m.Called(movieID)
|
||
|
|
||
|
var r0 []byte
|
||
|
if rf, ok := ret.Get(0).(func(int) []byte); ok {
|
||
|
r0 = rf(movieID)
|
||
|
} else {
|
||
|
if ret.Get(0) != nil {
|
||
|
r0 = ret.Get(0).([]byte)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
var r1 error
|
||
|
if rf, ok := ret.Get(1).(func(int) error); ok {
|
||
|
r1 = rf(movieID)
|
||
|
} else {
|
||
|
r1 = ret.Error(1)
|
||
|
}
|
||
|
|
||
|
return r0, r1
|
||
|
}
|