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