Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sundowndev
GitHub Repository: sundowndev/phoneinfoga
Path: blob/master/mocks/NumverifySupplierRequest.go
988 views
1
// Code generated by mockery v2.38.0. DO NOT EDIT.
2
3
package mocks
4
5
import (
6
mock "github.com/stretchr/testify/mock"
7
suppliers "github.com/sundowndev/phoneinfoga/v2/lib/remote/suppliers"
8
)
9
10
// NumverifySupplierReq is an autogenerated mock type for the NumverifySupplierRequestInterface type
11
type NumverifySupplierReq struct {
12
mock.Mock
13
}
14
15
// SetApiKey provides a mock function with given fields: _a0
16
func (_m *NumverifySupplierReq) SetApiKey(_a0 string) suppliers.NumverifySupplierRequestInterface {
17
ret := _m.Called(_a0)
18
19
if len(ret) == 0 {
20
panic("no return value specified for SetApiKey")
21
}
22
23
var r0 suppliers.NumverifySupplierRequestInterface
24
if rf, ok := ret.Get(0).(func(string) suppliers.NumverifySupplierRequestInterface); ok {
25
r0 = rf(_a0)
26
} else {
27
if ret.Get(0) != nil {
28
r0 = ret.Get(0).(suppliers.NumverifySupplierRequestInterface)
29
}
30
}
31
32
return r0
33
}
34
35
// ValidateNumber provides a mock function with given fields: _a0
36
func (_m *NumverifySupplierReq) ValidateNumber(_a0 string) (*suppliers.NumverifyValidateResponse, error) {
37
ret := _m.Called(_a0)
38
39
if len(ret) == 0 {
40
panic("no return value specified for ValidateNumber")
41
}
42
43
var r0 *suppliers.NumverifyValidateResponse
44
var r1 error
45
if rf, ok := ret.Get(0).(func(string) (*suppliers.NumverifyValidateResponse, error)); ok {
46
return rf(_a0)
47
}
48
if rf, ok := ret.Get(0).(func(string) *suppliers.NumverifyValidateResponse); ok {
49
r0 = rf(_a0)
50
} else {
51
if ret.Get(0) != nil {
52
r0 = ret.Get(0).(*suppliers.NumverifyValidateResponse)
53
}
54
}
55
56
if rf, ok := ret.Get(1).(func(string) error); ok {
57
r1 = rf(_a0)
58
} else {
59
r1 = ret.Error(1)
60
}
61
62
return r0, r1
63
}
64
65
// 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.
66
// The first argument is typically a *testing.T value.
67
func NewNumverifySupplierReq(t interface {
68
mock.TestingT
69
Cleanup(func())
70
}) *NumverifySupplierReq {
71
mock := &NumverifySupplierReq{}
72
mock.Mock.Test(t)
73
74
t.Cleanup(func() { mock.AssertExpectations(t) })
75
76
return mock
77
}
78
79