It was a good decision in hindsight to keep the public module as 0.x because this would have been a breaking change again. https://mattermost.atlassian.net/browse/MM-53032 ```release-note Changed the Go module path from github.com/mattermost/mattermost-server/server/v8 to github.com/mattermost/mattermost/server/v8. For the public facing module, it's path is also changed from github.com/mattermost/mattermost-server/server/public to github.com/mattermost/mattermost/server/public ```
52 строки
1.4 KiB
Go
52 строки
1.4 KiB
Go
// Code generated by mockery v2.23.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"
|
|
)
|
|
|
|
// ComplianceInterface is an autogenerated mock type for the ComplianceInterface type
|
|
type ComplianceInterface struct {
|
|
mock.Mock
|
|
}
|
|
|
|
// RunComplianceJob provides a mock function with given fields: job
|
|
func (_m *ComplianceInterface) RunComplianceJob(job *model.Compliance) *model.AppError {
|
|
ret := _m.Called(job)
|
|
|
|
var r0 *model.AppError
|
|
if rf, ok := ret.Get(0).(func(*model.Compliance) *model.AppError); ok {
|
|
r0 = rf(job)
|
|
} else {
|
|
if ret.Get(0) != nil {
|
|
r0 = ret.Get(0).(*model.AppError)
|
|
}
|
|
}
|
|
|
|
return r0
|
|
}
|
|
|
|
// StartComplianceDailyJob provides a mock function with given fields:
|
|
func (_m *ComplianceInterface) StartComplianceDailyJob() {
|
|
_m.Called()
|
|
}
|
|
|
|
type mockConstructorTestingTNewComplianceInterface interface {
|
|
mock.TestingT
|
|
Cleanup(func())
|
|
}
|
|
|
|
// 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.
|
|
func NewComplianceInterface(t mockConstructorTestingTNewComplianceInterface) *ComplianceInterface {
|
|
mock := &ComplianceInterface{}
|
|
mock.Mock.Test(t)
|
|
|
|
t.Cleanup(func() { mock.AssertExpectations(t) })
|
|
|
|
return mock
|
|
}
|