forked from ebhomengo/niki
96 lines
3.1 KiB
Go
96 lines
3.1 KiB
Go
// Code generated by mockery v2.45.1. DO NOT EDIT.
|
|
|
|
package adminkindboxvalidator
|
|
|
|
import (
|
|
context "context"
|
|
|
|
adminagentparam "git.gocasts.ir/ebhomengo/niki/param/admin/agent"
|
|
|
|
mock "github.com/stretchr/testify/mock"
|
|
)
|
|
|
|
// MockAgentSvc is an autogenerated mock type for the AgentSvc type
|
|
type MockAgentSvc struct {
|
|
mock.Mock
|
|
}
|
|
|
|
type MockAgentSvc_Expecter struct {
|
|
mock *mock.Mock
|
|
}
|
|
|
|
func (_m *MockAgentSvc) EXPECT() *MockAgentSvc_Expecter {
|
|
return &MockAgentSvc_Expecter{mock: &_m.Mock}
|
|
}
|
|
|
|
// AgentExistByID provides a mock function with given fields: ctx, req
|
|
func (_m *MockAgentSvc) AgentExistByID(ctx context.Context, req adminagentparam.AdminAgentExistByIDRequest) (adminagentparam.AdminAgentExistByIDResponse, error) {
|
|
ret := _m.Called(ctx, req)
|
|
|
|
if len(ret) == 0 {
|
|
panic("no return value specified for AgentExistByID")
|
|
}
|
|
|
|
var r0 adminagentparam.AdminAgentExistByIDResponse
|
|
var r1 error
|
|
if rf, ok := ret.Get(0).(func(context.Context, adminagentparam.AdminAgentExistByIDRequest) (adminagentparam.AdminAgentExistByIDResponse, error)); ok {
|
|
return rf(ctx, req)
|
|
}
|
|
if rf, ok := ret.Get(0).(func(context.Context, adminagentparam.AdminAgentExistByIDRequest) adminagentparam.AdminAgentExistByIDResponse); ok {
|
|
r0 = rf(ctx, req)
|
|
} else {
|
|
r0 = ret.Get(0).(adminagentparam.AdminAgentExistByIDResponse)
|
|
}
|
|
|
|
if rf, ok := ret.Get(1).(func(context.Context, adminagentparam.AdminAgentExistByIDRequest) error); ok {
|
|
r1 = rf(ctx, req)
|
|
} else {
|
|
r1 = ret.Error(1)
|
|
}
|
|
|
|
return r0, r1
|
|
}
|
|
|
|
// MockAgentSvc_AgentExistByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AgentExistByID'
|
|
type MockAgentSvc_AgentExistByID_Call struct {
|
|
*mock.Call
|
|
}
|
|
|
|
// AgentExistByID is a helper method to define mock.On call
|
|
// - ctx context.Context
|
|
// - req adminagentparam.AdminAgentExistByIDRequest
|
|
func (_e *MockAgentSvc_Expecter) AgentExistByID(ctx interface{}, req interface{}) *MockAgentSvc_AgentExistByID_Call {
|
|
return &MockAgentSvc_AgentExistByID_Call{Call: _e.mock.On("AgentExistByID", ctx, req)}
|
|
}
|
|
|
|
func (_c *MockAgentSvc_AgentExistByID_Call) Run(run func(ctx context.Context, req adminagentparam.AdminAgentExistByIDRequest)) *MockAgentSvc_AgentExistByID_Call {
|
|
_c.Call.Run(func(args mock.Arguments) {
|
|
run(args[0].(context.Context), args[1].(adminagentparam.AdminAgentExistByIDRequest))
|
|
})
|
|
return _c
|
|
}
|
|
|
|
func (_c *MockAgentSvc_AgentExistByID_Call) Return(_a0 adminagentparam.AdminAgentExistByIDResponse, _a1 error) *MockAgentSvc_AgentExistByID_Call {
|
|
_c.Call.Return(_a0, _a1)
|
|
return _c
|
|
}
|
|
|
|
func (_c *MockAgentSvc_AgentExistByID_Call) RunAndReturn(run func(context.Context, adminagentparam.AdminAgentExistByIDRequest) (adminagentparam.AdminAgentExistByIDResponse, error)) *MockAgentSvc_AgentExistByID_Call {
|
|
_c.Call.Return(run)
|
|
return _c
|
|
}
|
|
|
|
// NewMockAgentSvc creates a new instance of MockAgentSvc. 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 NewMockAgentSvc(t interface {
|
|
mock.TestingT
|
|
Cleanup(func())
|
|
}) *MockAgentSvc {
|
|
mock := &MockAgentSvc{}
|
|
mock.Mock.Test(t)
|
|
|
|
t.Cleanup(func() { mock.AssertExpectations(t) })
|
|
|
|
return mock
|
|
}
|