mirror of
https://github.com/mattermost/mattermost.git
synced 2026-02-11 23:03:45 -05:00
* Revert "Revert "MM-57759: Bump mockery to version 2.42.2 to support go 1.22^" (#26772)"
This reverts commit cd3b5b46e1.
* Added the hooks.go file changes as well
```release-note
NONE
```
49 lines
1.2 KiB
Go
49 lines
1.2 KiB
Go
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
|
|
|
// Regenerate this file using `make einterfaces-mocks`.
|
|
|
|
package mocks
|
|
|
|
import (
|
|
model "github.com/mattermost/mattermost/server/public/model"
|
|
mock "github.com/stretchr/testify/mock"
|
|
)
|
|
|
|
// IndexerJobInterface is an autogenerated mock type for the IndexerJobInterface type
|
|
type IndexerJobInterface struct {
|
|
mock.Mock
|
|
}
|
|
|
|
// MakeWorker provides a mock function with given fields:
|
|
func (_m *IndexerJobInterface) MakeWorker() model.Worker {
|
|
ret := _m.Called()
|
|
|
|
if len(ret) == 0 {
|
|
panic("no return value specified for MakeWorker")
|
|
}
|
|
|
|
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
|
|
}
|
|
|
|
// 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 {
|
|
mock.TestingT
|
|
Cleanup(func())
|
|
}) *IndexerJobInterface {
|
|
mock := &IndexerJobInterface{}
|
|
mock.Mock.Test(t)
|
|
|
|
t.Cleanup(func() { mock.AssertExpectations(t) })
|
|
|
|
return mock
|
|
}
|