Select Git revision
expr_test.go
Middleware.go 1.02 KiB
// Code generated by mockery v2.33.3. DO NOT EDIT.
package mocks
import (
clients "git.perx.ru/perxis/perxis-go/pkg/clients"
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 clients.Clients) clients.Clients {
ret := _m.Called(_a0)
var r0 clients.Clients
if rf, ok := ret.Get(0).(func(clients.Clients) clients.Clients); ok {
r0 = rf(_a0)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(clients.Clients)
}
}
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
}