Path: blob/master/mocks/NumverifySupplierRequest.go
988 views
// Code generated by mockery v2.38.0. DO NOT EDIT.12package mocks34import (5mock "github.com/stretchr/testify/mock"6suppliers "github.com/sundowndev/phoneinfoga/v2/lib/remote/suppliers"7)89// NumverifySupplierReq is an autogenerated mock type for the NumverifySupplierRequestInterface type10type NumverifySupplierReq struct {11mock.Mock12}1314// SetApiKey provides a mock function with given fields: _a015func (_m *NumverifySupplierReq) SetApiKey(_a0 string) suppliers.NumverifySupplierRequestInterface {16ret := _m.Called(_a0)1718if len(ret) == 0 {19panic("no return value specified for SetApiKey")20}2122var r0 suppliers.NumverifySupplierRequestInterface23if rf, ok := ret.Get(0).(func(string) suppliers.NumverifySupplierRequestInterface); ok {24r0 = rf(_a0)25} else {26if ret.Get(0) != nil {27r0 = ret.Get(0).(suppliers.NumverifySupplierRequestInterface)28}29}3031return r032}3334// ValidateNumber provides a mock function with given fields: _a035func (_m *NumverifySupplierReq) ValidateNumber(_a0 string) (*suppliers.NumverifyValidateResponse, error) {36ret := _m.Called(_a0)3738if len(ret) == 0 {39panic("no return value specified for ValidateNumber")40}4142var r0 *suppliers.NumverifyValidateResponse43var r1 error44if rf, ok := ret.Get(0).(func(string) (*suppliers.NumverifyValidateResponse, error)); ok {45return rf(_a0)46}47if rf, ok := ret.Get(0).(func(string) *suppliers.NumverifyValidateResponse); ok {48r0 = rf(_a0)49} else {50if ret.Get(0) != nil {51r0 = ret.Get(0).(*suppliers.NumverifyValidateResponse)52}53}5455if rf, ok := ret.Get(1).(func(string) error); ok {56r1 = rf(_a0)57} else {58r1 = ret.Error(1)59}6061return r0, r162}6364// NewNumverifySupplierReq creates a new instance of NumverifySupplierReq. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.65// The first argument is typically a *testing.T value.66func NewNumverifySupplierReq(t interface {67mock.TestingT68Cleanup(func())69}) *NumverifySupplierReq {70mock := &NumverifySupplierReq{}71mock.Mock.Test(t)7273t.Cleanup(func() { mock.AssertExpectations(t) })7475return mock76}777879