-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
smshandlersinterface_test.go
138 lines (111 loc) · 4.66 KB
/
smshandlersinterface_test.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
// Code generated by mockery. DO NOT EDIT.
package main
import (
http "net/http"
mock "github.com/stretchr/testify/mock"
)
// smsHandlersInterfaceMock is an autogenerated mock type for the smsHandlersInterface type
type smsHandlersInterfaceMock struct {
mock.Mock
}
type smsHandlersInterfaceMock_Expecter struct {
mock *mock.Mock
}
func (_m *smsHandlersInterfaceMock) EXPECT() *smsHandlersInterfaceMock_Expecter {
return &smsHandlersInterfaceMock_Expecter{mock: &_m.Mock}
}
// SmsDelete provides a mock function with given fields: w, r
func (_m *smsHandlersInterfaceMock) SmsDelete(w http.ResponseWriter, r *http.Request) {
_m.Called(w, r)
}
// smsHandlersInterfaceMock_SmsDelete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SmsDelete'
type smsHandlersInterfaceMock_SmsDelete_Call struct {
*mock.Call
}
// SmsDelete is a helper method to define mock.On call
// - w http.ResponseWriter
// - r *http.Request
func (_e *smsHandlersInterfaceMock_Expecter) SmsDelete(w interface{}, r interface{}) *smsHandlersInterfaceMock_SmsDelete_Call {
return &smsHandlersInterfaceMock_SmsDelete_Call{Call: _e.mock.On("SmsDelete", w, r)}
}
func (_c *smsHandlersInterfaceMock_SmsDelete_Call) Run(run func(w http.ResponseWriter, r *http.Request)) *smsHandlersInterfaceMock_SmsDelete_Call {
_c.Call.Run(func(args mock.Arguments) {
run(args[0].(http.ResponseWriter), args[1].(*http.Request))
})
return _c
}
func (_c *smsHandlersInterfaceMock_SmsDelete_Call) Return() *smsHandlersInterfaceMock_SmsDelete_Call {
_c.Call.Return()
return _c
}
func (_c *smsHandlersInterfaceMock_SmsDelete_Call) RunAndReturn(run func(http.ResponseWriter, *http.Request)) *smsHandlersInterfaceMock_SmsDelete_Call {
_c.Call.Return(run)
return _c
}
// SmsGet provides a mock function with given fields: w, r
func (_m *smsHandlersInterfaceMock) SmsGet(w http.ResponseWriter, r *http.Request) {
_m.Called(w, r)
}
// smsHandlersInterfaceMock_SmsGet_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SmsGet'
type smsHandlersInterfaceMock_SmsGet_Call struct {
*mock.Call
}
// SmsGet is a helper method to define mock.On call
// - w http.ResponseWriter
// - r *http.Request
func (_e *smsHandlersInterfaceMock_Expecter) SmsGet(w interface{}, r interface{}) *smsHandlersInterfaceMock_SmsGet_Call {
return &smsHandlersInterfaceMock_SmsGet_Call{Call: _e.mock.On("SmsGet", w, r)}
}
func (_c *smsHandlersInterfaceMock_SmsGet_Call) Run(run func(w http.ResponseWriter, r *http.Request)) *smsHandlersInterfaceMock_SmsGet_Call {
_c.Call.Run(func(args mock.Arguments) {
run(args[0].(http.ResponseWriter), args[1].(*http.Request))
})
return _c
}
func (_c *smsHandlersInterfaceMock_SmsGet_Call) Return() *smsHandlersInterfaceMock_SmsGet_Call {
_c.Call.Return()
return _c
}
func (_c *smsHandlersInterfaceMock_SmsGet_Call) RunAndReturn(run func(http.ResponseWriter, *http.Request)) *smsHandlersInterfaceMock_SmsGet_Call {
_c.Call.Return(run)
return _c
}
// SmsSend provides a mock function with given fields: w, r
func (_m *smsHandlersInterfaceMock) SmsSend(w http.ResponseWriter, r *http.Request) {
_m.Called(w, r)
}
// smsHandlersInterfaceMock_SmsSend_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SmsSend'
type smsHandlersInterfaceMock_SmsSend_Call struct {
*mock.Call
}
// SmsSend is a helper method to define mock.On call
// - w http.ResponseWriter
// - r *http.Request
func (_e *smsHandlersInterfaceMock_Expecter) SmsSend(w interface{}, r interface{}) *smsHandlersInterfaceMock_SmsSend_Call {
return &smsHandlersInterfaceMock_SmsSend_Call{Call: _e.mock.On("SmsSend", w, r)}
}
func (_c *smsHandlersInterfaceMock_SmsSend_Call) Run(run func(w http.ResponseWriter, r *http.Request)) *smsHandlersInterfaceMock_SmsSend_Call {
_c.Call.Run(func(args mock.Arguments) {
run(args[0].(http.ResponseWriter), args[1].(*http.Request))
})
return _c
}
func (_c *smsHandlersInterfaceMock_SmsSend_Call) Return() *smsHandlersInterfaceMock_SmsSend_Call {
_c.Call.Return()
return _c
}
func (_c *smsHandlersInterfaceMock_SmsSend_Call) RunAndReturn(run func(http.ResponseWriter, *http.Request)) *smsHandlersInterfaceMock_SmsSend_Call {
_c.Call.Return(run)
return _c
}
// newSmsHandlersInterfaceMock creates a new instance of smsHandlersInterfaceMock. 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 newSmsHandlersInterfaceMock(t interface {
mock.TestingT
Cleanup(func())
}) *smsHandlersInterfaceMock {
mock := &smsHandlersInterfaceMock{}
mock.Mock.Test(t)
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
}