func (_m *ImageReaderWriter) FindByPath(path string) (*models.Image, error) {
	ret := _m.Called(path)

	var r0 *models.Image
	if rf, ok := ret.Get(0).(func(string) *models.Image); ok {
		r0 = rf(path)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*models.Image)
		}
	}

	var r1 error
	if rf, ok := ret.Get(1).(func(string) error); ok {
		r1 = rf(path)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}
// FindByPath provides a mock function with given fields: path
FindByPath provides a mock function with given fields: path
// FindByPath provides a mock function with given fields : path
func (_m *ImageReaderWriter) FindByPath(path string) (*models.Image, error) {
	ret := _m.Called(path)
	var r0 *models.Image
	if rf, ok := ret.Get(0).(func(string) *models.Image); ok {
		r0 = rf(path)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*models.Image)
		}
	}
	var r1 error
	if rf, ok := ret.Get(1).(func(string) error); ok {
		r1 = rf(path)
	} else {
		r1 = ret.Error(1)
	}
	return r0, r1
}
func ( _m * ImageReaderWriter ) FindByPath ( path string ) ( * models . Image , error ) { ret := _m . Called ( path ) var r0 * models . Image if rf , ok := ret . Get ( 0 ) . ( func ( string ) * models . Image ) ; ok { r0 = rf ( path ) } else { if ret . Get ( 0 ) != nil { r0 = ret . Get ( 0 ) . ( * models . Image ) } } var r1 error if rf , ok := ret . Get ( 1 ) . ( func ( string ) error ) ; ok { r1 = rf ( path ) } else { r1 = ret . Error ( 1 ) } return r0 , r1 }
FindByPath provides a mock function with given fields: path
FindByPath provides a mock function with given fields : path