// Code generated by mockery v2.45.1. DO NOT EDIT. package benefactorkindboxvalidator import ( context "context" addressparam "git.gocasts.ir/ebhomengo/niki/param/benefactor/address" mock "github.com/stretchr/testify/mock" ) // MockAddressSvc is an autogenerated mock type for the AddressSvc type type MockAddressSvc struct { mock.Mock } type MockAddressSvc_Expecter struct { mock *mock.Mock } func (_m *MockAddressSvc) EXPECT() *MockAddressSvc_Expecter { return &MockAddressSvc_Expecter{mock: &_m.Mock} } // AddressExistByID provides a mock function with given fields: ctx, request func (_m *MockAddressSvc) AddressExistByID(ctx context.Context, request addressparam.GetAddressByIDRequest) (addressparam.GetAddressByIDResponse, error) { ret := _m.Called(ctx, request) if len(ret) == 0 { panic("no return value specified for AddressExistByID") } var r0 addressparam.GetAddressByIDResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, addressparam.GetAddressByIDRequest) (addressparam.GetAddressByIDResponse, error)); ok { return rf(ctx, request) } if rf, ok := ret.Get(0).(func(context.Context, addressparam.GetAddressByIDRequest) addressparam.GetAddressByIDResponse); ok { r0 = rf(ctx, request) } else { r0 = ret.Get(0).(addressparam.GetAddressByIDResponse) } if rf, ok := ret.Get(1).(func(context.Context, addressparam.GetAddressByIDRequest) error); ok { r1 = rf(ctx, request) } else { r1 = ret.Error(1) } return r0, r1 } // MockAddressSvc_AddressExistByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddressExistByID' type MockAddressSvc_AddressExistByID_Call struct { *mock.Call } // AddressExistByID is a helper method to define mock.On call // - ctx context.Context // - request addressparam.GetAddressByIDRequest func (_e *MockAddressSvc_Expecter) AddressExistByID(ctx interface{}, request interface{}) *MockAddressSvc_AddressExistByID_Call { return &MockAddressSvc_AddressExistByID_Call{Call: _e.mock.On("AddressExistByID", ctx, request)} } func (_c *MockAddressSvc_AddressExistByID_Call) Run(run func(ctx context.Context, request addressparam.GetAddressByIDRequest)) *MockAddressSvc_AddressExistByID_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(context.Context), args[1].(addressparam.GetAddressByIDRequest)) }) return _c } func (_c *MockAddressSvc_AddressExistByID_Call) Return(_a0 addressparam.GetAddressByIDResponse, _a1 error) *MockAddressSvc_AddressExistByID_Call { _c.Call.Return(_a0, _a1) return _c } func (_c *MockAddressSvc_AddressExistByID_Call) RunAndReturn(run func(context.Context, addressparam.GetAddressByIDRequest) (addressparam.GetAddressByIDResponse, error)) *MockAddressSvc_AddressExistByID_Call { _c.Call.Return(run) return _c } // NewMockAddressSvc creates a new instance of MockAddressSvc. 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 NewMockAddressSvc(t interface { mock.TestingT Cleanup(func()) }) *MockAddressSvc { mock := &MockAddressSvc{} mock.Mock.Test(t) t.Cleanup(func() { mock.AssertExpectations(t) }) return mock }