Select Git revision
spaces.pb.go
Middleware.go 1.10 KiB
// Code generated by mockery v2.33.3. DO NOT EDIT.
package mocks
import (
collaborators "git.perx.ru/perxis/perxis-go/pkg/collaborators"
mock "github.com/stretchr/testify/mock"
)
// Middleware is an autogenerated mock type for the Middleware type
type Middleware struct {
mock.Mock
}
// Execute provides a mock function with given fields: _a0
func (_m *Middleware) Execute(_a0 collaborators.Collaborators) collaborators.Collaborators {
ret := _m.Called(_a0)
var r0 collaborators.Collaborators
if rf, ok := ret.Get(0).(func(collaborators.Collaborators) collaborators.Collaborators); ok {
r0 = rf(_a0)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(collaborators.Collaborators)
}
}
return r0
}
// NewMiddleware creates a new instance of Middleware. 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 NewMiddleware(t interface {
mock.TestingT
Cleanup(func())
}) *Middleware {
mock := &Middleware{}
mock.Mock.Test(t)
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
}