-
Notifications
You must be signed in to change notification settings - Fork 0
/
mock_Notification_gateway.go
175 lines (138 loc) · 5.11 KB
/
mock_Notification_gateway.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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
// Code generated by mockery v2.40.1. DO NOT EDIT.
package mocks
import (
context "context"
mock "github.com/stretchr/testify/mock"
notification "github.com/awlsring/texit/internal/pkg/domain/notification"
)
// MockNotification_gateway is an autogenerated mock type for the Notification type
type MockNotification_gateway struct {
mock.Mock
}
type MockNotification_gateway_Expecter struct {
mock *mock.Mock
}
func (_m *MockNotification_gateway) EXPECT() *MockNotification_gateway_Expecter {
return &MockNotification_gateway_Expecter{mock: &_m.Mock}
}
// Endpoint provides a mock function with given fields:
func (_m *MockNotification_gateway) Endpoint() notification.Endpoint {
ret := _m.Called()
if len(ret) == 0 {
panic("no return value specified for Endpoint")
}
var r0 notification.Endpoint
if rf, ok := ret.Get(0).(func() notification.Endpoint); ok {
r0 = rf()
} else {
r0 = ret.Get(0).(notification.Endpoint)
}
return r0
}
// MockNotification_gateway_Endpoint_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Endpoint'
type MockNotification_gateway_Endpoint_Call struct {
*mock.Call
}
// Endpoint is a helper method to define mock.On call
func (_e *MockNotification_gateway_Expecter) Endpoint() *MockNotification_gateway_Endpoint_Call {
return &MockNotification_gateway_Endpoint_Call{Call: _e.mock.On("Endpoint")}
}
func (_c *MockNotification_gateway_Endpoint_Call) Run(run func()) *MockNotification_gateway_Endpoint_Call {
_c.Call.Run(func(args mock.Arguments) {
run()
})
return _c
}
func (_c *MockNotification_gateway_Endpoint_Call) Return(_a0 notification.Endpoint) *MockNotification_gateway_Endpoint_Call {
_c.Call.Return(_a0)
return _c
}
func (_c *MockNotification_gateway_Endpoint_Call) RunAndReturn(run func() notification.Endpoint) *MockNotification_gateway_Endpoint_Call {
_c.Call.Return(run)
return _c
}
// SendMessage provides a mock function with given fields: ctx, msg
func (_m *MockNotification_gateway) SendMessage(ctx context.Context, msg string) error {
ret := _m.Called(ctx, msg)
if len(ret) == 0 {
panic("no return value specified for SendMessage")
}
var r0 error
if rf, ok := ret.Get(0).(func(context.Context, string) error); ok {
r0 = rf(ctx, msg)
} else {
r0 = ret.Error(0)
}
return r0
}
// MockNotification_gateway_SendMessage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SendMessage'
type MockNotification_gateway_SendMessage_Call struct {
*mock.Call
}
// SendMessage is a helper method to define mock.On call
// - ctx context.Context
// - msg string
func (_e *MockNotification_gateway_Expecter) SendMessage(ctx interface{}, msg interface{}) *MockNotification_gateway_SendMessage_Call {
return &MockNotification_gateway_SendMessage_Call{Call: _e.mock.On("SendMessage", ctx, msg)}
}
func (_c *MockNotification_gateway_SendMessage_Call) Run(run func(ctx context.Context, msg string)) *MockNotification_gateway_SendMessage_Call {
_c.Call.Run(func(args mock.Arguments) {
run(args[0].(context.Context), args[1].(string))
})
return _c
}
func (_c *MockNotification_gateway_SendMessage_Call) Return(_a0 error) *MockNotification_gateway_SendMessage_Call {
_c.Call.Return(_a0)
return _c
}
func (_c *MockNotification_gateway_SendMessage_Call) RunAndReturn(run func(context.Context, string) error) *MockNotification_gateway_SendMessage_Call {
_c.Call.Return(run)
return _c
}
// Type provides a mock function with given fields:
func (_m *MockNotification_gateway) Type() notification.TopicType {
ret := _m.Called()
if len(ret) == 0 {
panic("no return value specified for Type")
}
var r0 notification.TopicType
if rf, ok := ret.Get(0).(func() notification.TopicType); ok {
r0 = rf()
} else {
r0 = ret.Get(0).(notification.TopicType)
}
return r0
}
// MockNotification_gateway_Type_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Type'
type MockNotification_gateway_Type_Call struct {
*mock.Call
}
// Type is a helper method to define mock.On call
func (_e *MockNotification_gateway_Expecter) Type() *MockNotification_gateway_Type_Call {
return &MockNotification_gateway_Type_Call{Call: _e.mock.On("Type")}
}
func (_c *MockNotification_gateway_Type_Call) Run(run func()) *MockNotification_gateway_Type_Call {
_c.Call.Run(func(args mock.Arguments) {
run()
})
return _c
}
func (_c *MockNotification_gateway_Type_Call) Return(_a0 notification.TopicType) *MockNotification_gateway_Type_Call {
_c.Call.Return(_a0)
return _c
}
func (_c *MockNotification_gateway_Type_Call) RunAndReturn(run func() notification.TopicType) *MockNotification_gateway_Type_Call {
_c.Call.Return(run)
return _c
}
// NewMockNotification_gateway creates a new instance of MockNotification_gateway. 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 NewMockNotification_gateway(t interface {
mock.TestingT
Cleanup(func())
}) *MockNotification_gateway {
mock := &MockNotification_gateway{}
mock.Mock.Test(t)
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
}