2025-06-10 14:04:57 -04:00
// Code generated by mockery v2.53.4. DO NOT EDIT.
2022-02-14 12:21:18 -05:00
// Regenerate this file using `make einterfaces-mocks`.
package mocks
import (
2023-06-11 01:24:35 -04:00
model "github.com/mattermost/mattermost/server/public/model"
2022-02-14 12:21:18 -05:00
mock "github.com/stretchr/testify/mock"
)
// IndexerJobInterface is an autogenerated mock type for the IndexerJobInterface type
type IndexerJobInterface struct {
mock . Mock
}
2025-06-10 14:04:57 -04:00
// MakeWorker provides a mock function with no fields
2022-02-14 12:21:18 -05:00
func ( _m * IndexerJobInterface ) 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" )
}
2022-02-14 12:21:18 -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
// NewIndexerJobInterface creates a new instance of IndexerJobInterface. 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 NewIndexerJobInterface ( t interface {
2023-04-10 04:50:57 -04:00
mock . TestingT
Cleanup ( func ( ) )
2024-04-12 22:45:59 -04:00
} ) * IndexerJobInterface {
2023-04-10 04:50:57 -04:00
mock := & IndexerJobInterface { }
mock . Mock . Test ( t )
t . Cleanup ( func ( ) { mock . AssertExpectations ( t ) } )
return mock
}