2025-06-10 14:04:57 -04:00
// Code generated by mockery v2.53.4. DO NOT EDIT.
2020-12-06 03:02:53 -05:00
// Regenerate this file using `make einterfaces-mocks`.
package mocks
import (
2023-09-07 02:50:22 -04:00
jobs "github.com/mattermost/mattermost/server/v8/einterfaces/jobs"
2020-12-06 03:02:53 -05:00
mock "github.com/stretchr/testify/mock"
2023-09-07 02:50:22 -04:00
model "github.com/mattermost/mattermost/server/public/model"
2020-12-06 03:02:53 -05:00
)
// CloudJobInterface is an autogenerated mock type for the CloudJobInterface type
type CloudJobInterface struct {
mock . Mock
}
2025-06-10 14:04:57 -04:00
// MakeScheduler provides a mock function with no fields
2023-09-07 02:50:22 -04:00
func ( _m * CloudJobInterface ) MakeScheduler ( ) jobs . Scheduler {
2020-12-06 03:02:53 -05:00
ret := _m . Called ( )
2024-04-12 22:45:59 -04:00
if len ( ret ) == 0 {
panic ( "no return value specified for MakeScheduler" )
}
2023-09-07 02:50:22 -04:00
var r0 jobs . Scheduler
if rf , ok := ret . Get ( 0 ) . ( func ( ) jobs . Scheduler ) ; ok {
2020-12-06 03:02:53 -05:00
r0 = rf ( )
} else {
if ret . Get ( 0 ) != nil {
2023-09-07 02:50:22 -04:00
r0 = ret . Get ( 0 ) . ( jobs . Scheduler )
2020-12-06 03:02:53 -05:00
}
}
return r0
}
2025-06-10 14:04:57 -04:00
// MakeWorker provides a mock function with no fields
2020-12-06 03:02:53 -05:00
func ( _m * CloudJobInterface ) MakeWorker ( ) model . Worker {
ret := _m . Called ( )
2024-04-12 22:45:59 -04:00
if len ( ret ) == 0 {
panic ( "no return value specified for MakeWorker" )
}
2020-12-06 03:02:53 -05:00
var r0 model . Worker
if rf , ok := ret . Get ( 0 ) . ( func ( ) model . Worker ) ; ok {
r0 = rf ( )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( model . Worker )
}
}
return r0
}
2023-04-10 04:50:57 -04:00
2024-04-12 22:45:59 -04:00
// NewCloudJobInterface creates a new instance of CloudJobInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
// The first argument is typically a *testing.T value.
func NewCloudJobInterface ( t interface {
2023-04-10 04:50:57 -04:00
mock . TestingT
Cleanup ( func ( ) )
2024-04-12 22:45:59 -04:00
} ) * CloudJobInterface {
2023-04-10 04:50:57 -04:00
mock := & CloudJobInterface { }
mock . Mock . Test ( t )
t . Cleanup ( func ( ) { mock . AssertExpectations ( t ) } )
return mock
}