2025-06-10 14:04:57 -04:00
// Code generated by mockery v2.53.4. DO NOT EDIT.
2019-07-08 11:32:29 -04:00
// Regenerate this file using `make einterfaces-mocks`.
package mocks
2020-02-14 15:47:43 -05:00
import (
2023-06-11 01:24:35 -04:00
model "github.com/mattermost/mattermost/server/public/model"
2023-10-23 04:20:32 -04:00
request "github.com/mattermost/mattermost/server/public/shared/request"
2020-02-14 15:47:43 -05:00
mock "github.com/stretchr/testify/mock"
)
2019-07-08 11:32:29 -04:00
// ComplianceInterface is an autogenerated mock type for the ComplianceInterface type
type ComplianceInterface struct {
mock . Mock
}
2023-10-23 04:20:32 -04:00
// RunComplianceJob provides a mock function with given fields: rctx, job
func ( _m * ComplianceInterface ) RunComplianceJob ( rctx request . CTX , job * model . Compliance ) * model . AppError {
ret := _m . Called ( rctx , job )
2019-07-08 11:32:29 -04:00
2024-04-12 22:45:59 -04:00
if len ( ret ) == 0 {
panic ( "no return value specified for RunComplianceJob" )
}
2019-07-08 11:32:29 -04:00
var r0 * model . AppError
2023-10-23 04:20:32 -04:00
if rf , ok := ret . Get ( 0 ) . ( func ( request . CTX , * model . Compliance ) * model . AppError ) ; ok {
r0 = rf ( rctx , job )
2019-07-08 11:32:29 -04:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * model . AppError )
}
}
return r0
}
2025-06-10 14:04:57 -04:00
// StartComplianceDailyJob provides a mock function with no fields
2019-07-08 11:32:29 -04:00
func ( _m * ComplianceInterface ) StartComplianceDailyJob ( ) {
_m . Called ( )
}
2023-04-10 04:50:57 -04:00
2024-04-12 22:45:59 -04:00
// NewComplianceInterface creates a new instance of ComplianceInterface. 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 NewComplianceInterface ( t interface {
2023-04-10 04:50:57 -04:00
mock . TestingT
Cleanup ( func ( ) )
2024-04-12 22:45:59 -04:00
} ) * ComplianceInterface {
2023-04-10 04:50:57 -04:00
mock := & ComplianceInterface { }
mock . Mock . Test ( t )
t . Cleanup ( func ( ) { mock . AssertExpectations ( t ) } )
return mock
}