sqsclient_mock.go 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. // Code generated by MockGen. DO NOT EDIT.
  2. // Source: common/sqsclient/sqsclient.go
  3. // Package mock_sqsclient is a generated GoMock package.
  4. package sqsclient
  5. import (
  6. context "context"
  7. reflect "reflect"
  8. sqs "github.com/aws/aws-sdk-go-v2/service/sqs"
  9. gomock "github.com/golang/mock/gomock"
  10. )
  11. // MockSQSClient is a mock of SQSClient interface.
  12. type MockSQSClient struct {
  13. ctrl *gomock.Controller
  14. recorder *MockSQSClientMockRecorder
  15. }
  16. // MockSQSClientMockRecorder is the mock recorder for MockSQSClient.
  17. type MockSQSClientMockRecorder struct {
  18. mock *MockSQSClient
  19. }
  20. // NewMockSQSClient creates a new mock instance.
  21. func NewMockSQSClient(ctrl *gomock.Controller) *MockSQSClient {
  22. mock := &MockSQSClient{ctrl: ctrl}
  23. mock.recorder = &MockSQSClientMockRecorder{mock}
  24. return mock
  25. }
  26. // EXPECT returns an object that allows the caller to indicate expected use.
  27. func (m *MockSQSClient) EXPECT() *MockSQSClientMockRecorder {
  28. return m.recorder
  29. }
  30. // CreateQueue mocks base method.
  31. func (m *MockSQSClient) CreateQueue(ctx context.Context, input *sqs.CreateQueueInput, optFns ...func(*sqs.Options)) (*sqs.CreateQueueOutput, error) {
  32. m.ctrl.T.Helper()
  33. varargs := []interface{}{ctx, input}
  34. for _, a := range optFns {
  35. varargs = append(varargs, a)
  36. }
  37. ret := m.ctrl.Call(m, "CreateQueue", varargs...)
  38. ret0, _ := ret[0].(*sqs.CreateQueueOutput)
  39. ret1, _ := ret[1].(error)
  40. return ret0, ret1
  41. }
  42. // CreateQueue indicates an expected call of CreateQueue.
  43. func (mr *MockSQSClientMockRecorder) CreateQueue(ctx, input interface{}, optFns ...interface{}) *gomock.Call {
  44. mr.mock.ctrl.T.Helper()
  45. varargs := append([]interface{}{ctx, input}, optFns...)
  46. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateQueue", reflect.TypeOf((*MockSQSClient)(nil).CreateQueue), varargs...)
  47. }
  48. // DeleteMessage mocks base method.
  49. func (m *MockSQSClient) DeleteMessage(ctx context.Context, input *sqs.DeleteMessageInput, optFns ...func(*sqs.Options)) (*sqs.DeleteMessageOutput, error) {
  50. m.ctrl.T.Helper()
  51. varargs := []interface{}{ctx, input}
  52. for _, a := range optFns {
  53. varargs = append(varargs, a)
  54. }
  55. ret := m.ctrl.Call(m, "DeleteMessage", varargs...)
  56. ret0, _ := ret[0].(*sqs.DeleteMessageOutput)
  57. ret1, _ := ret[1].(error)
  58. return ret0, ret1
  59. }
  60. // DeleteMessage indicates an expected call of DeleteMessage.
  61. func (mr *MockSQSClientMockRecorder) DeleteMessage(ctx, input interface{}, optFns ...interface{}) *gomock.Call {
  62. mr.mock.ctrl.T.Helper()
  63. varargs := append([]interface{}{ctx, input}, optFns...)
  64. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteMessage", reflect.TypeOf((*MockSQSClient)(nil).DeleteMessage), varargs...)
  65. }
  66. // DeleteQueue mocks base method.
  67. func (m *MockSQSClient) DeleteQueue(ctx context.Context, input *sqs.DeleteQueueInput, optFns ...func(*sqs.Options)) (*sqs.DeleteQueueOutput, error) {
  68. m.ctrl.T.Helper()
  69. varargs := []interface{}{ctx, input}
  70. for _, a := range optFns {
  71. varargs = append(varargs, a)
  72. }
  73. ret := m.ctrl.Call(m, "DeleteQueue", varargs...)
  74. ret0, _ := ret[0].(*sqs.DeleteQueueOutput)
  75. ret1, _ := ret[1].(error)
  76. return ret0, ret1
  77. }
  78. // DeleteQueue indicates an expected call of DeleteQueue.
  79. func (mr *MockSQSClientMockRecorder) DeleteQueue(ctx, input interface{}, optFns ...interface{}) *gomock.Call {
  80. mr.mock.ctrl.T.Helper()
  81. varargs := append([]interface{}{ctx, input}, optFns...)
  82. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteQueue", reflect.TypeOf((*MockSQSClient)(nil).DeleteQueue), varargs...)
  83. }
  84. // GetQueueAttributes mocks base method.
  85. func (m *MockSQSClient) GetQueueAttributes(ctx context.Context, input *sqs.GetQueueAttributesInput, optFns ...func(*sqs.Options)) (*sqs.GetQueueAttributesOutput, error) {
  86. m.ctrl.T.Helper()
  87. varargs := []interface{}{ctx, input}
  88. for _, a := range optFns {
  89. varargs = append(varargs, a)
  90. }
  91. ret := m.ctrl.Call(m, "GetQueueAttributes", varargs...)
  92. ret0, _ := ret[0].(*sqs.GetQueueAttributesOutput)
  93. ret1, _ := ret[1].(error)
  94. return ret0, ret1
  95. }
  96. // GetQueueAttributes indicates an expected call of GetQueueAttributes.
  97. func (mr *MockSQSClientMockRecorder) GetQueueAttributes(ctx, input interface{}, optFns ...interface{}) *gomock.Call {
  98. mr.mock.ctrl.T.Helper()
  99. varargs := append([]interface{}{ctx, input}, optFns...)
  100. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetQueueAttributes", reflect.TypeOf((*MockSQSClient)(nil).GetQueueAttributes), varargs...)
  101. }
  102. // GetQueueUrl mocks base method.
  103. func (m *MockSQSClient) GetQueueUrl(ctx context.Context, input *sqs.GetQueueUrlInput, optFns ...func(*sqs.Options)) (*sqs.GetQueueUrlOutput, error) {
  104. m.ctrl.T.Helper()
  105. varargs := []interface{}{ctx, input}
  106. for _, a := range optFns {
  107. varargs = append(varargs, a)
  108. }
  109. ret := m.ctrl.Call(m, "GetQueueUrl", varargs...)
  110. ret0, _ := ret[0].(*sqs.GetQueueUrlOutput)
  111. ret1, _ := ret[1].(error)
  112. return ret0, ret1
  113. }
  114. // GetQueueUrl indicates an expected call of GetQueueUrl.
  115. func (mr *MockSQSClientMockRecorder) GetQueueUrl(ctx, input interface{}, optFns ...interface{}) *gomock.Call {
  116. mr.mock.ctrl.T.Helper()
  117. varargs := append([]interface{}{ctx, input}, optFns...)
  118. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetQueueUrl", reflect.TypeOf((*MockSQSClient)(nil).GetQueueUrl), varargs...)
  119. }
  120. // ListQueues mocks base method.
  121. func (m *MockSQSClient) ListQueues(ctx context.Context, input *sqs.ListQueuesInput, optFns ...func(*sqs.Options)) (*sqs.ListQueuesOutput, error) {
  122. m.ctrl.T.Helper()
  123. varargs := []interface{}{ctx, input}
  124. for _, a := range optFns {
  125. varargs = append(varargs, a)
  126. }
  127. ret := m.ctrl.Call(m, "ListQueues", varargs...)
  128. ret0, _ := ret[0].(*sqs.ListQueuesOutput)
  129. ret1, _ := ret[1].(error)
  130. return ret0, ret1
  131. }
  132. // ListQueues indicates an expected call of ListQueues.
  133. func (mr *MockSQSClientMockRecorder) ListQueues(ctx, input interface{}, optFns ...interface{}) *gomock.Call {
  134. mr.mock.ctrl.T.Helper()
  135. varargs := append([]interface{}{ctx, input}, optFns...)
  136. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListQueues", reflect.TypeOf((*MockSQSClient)(nil).ListQueues), varargs...)
  137. }
  138. // ReceiveMessage mocks base method.
  139. func (m *MockSQSClient) ReceiveMessage(ctx context.Context, input *sqs.ReceiveMessageInput, optFns ...func(*sqs.Options)) (*sqs.ReceiveMessageOutput, error) {
  140. m.ctrl.T.Helper()
  141. varargs := []interface{}{ctx, input}
  142. for _, a := range optFns {
  143. varargs = append(varargs, a)
  144. }
  145. ret := m.ctrl.Call(m, "ReceiveMessage", varargs...)
  146. ret0, _ := ret[0].(*sqs.ReceiveMessageOutput)
  147. ret1, _ := ret[1].(error)
  148. return ret0, ret1
  149. }
  150. // ReceiveMessage indicates an expected call of ReceiveMessage.
  151. func (mr *MockSQSClientMockRecorder) ReceiveMessage(ctx, input interface{}, optFns ...interface{}) *gomock.Call {
  152. mr.mock.ctrl.T.Helper()
  153. varargs := append([]interface{}{ctx, input}, optFns...)
  154. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReceiveMessage", reflect.TypeOf((*MockSQSClient)(nil).ReceiveMessage), varargs...)
  155. }
  156. // SendMessage mocks base method.
  157. func (m *MockSQSClient) SendMessage(ctx context.Context, input *sqs.SendMessageInput, optFns ...func(*sqs.Options)) (*sqs.SendMessageOutput, error) {
  158. m.ctrl.T.Helper()
  159. varargs := []interface{}{ctx, input}
  160. for _, a := range optFns {
  161. varargs = append(varargs, a)
  162. }
  163. ret := m.ctrl.Call(m, "SendMessage", varargs...)
  164. ret0, _ := ret[0].(*sqs.SendMessageOutput)
  165. ret1, _ := ret[1].(error)
  166. return ret0, ret1
  167. }
  168. // SendMessage indicates an expected call of SendMessage.
  169. func (mr *MockSQSClientMockRecorder) SendMessage(ctx, input interface{}, optFns ...interface{}) *gomock.Call {
  170. mr.mock.ctrl.T.Helper()
  171. varargs := append([]interface{}{ctx, input}, optFns...)
  172. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendMessage", reflect.TypeOf((*MockSQSClient)(nil).SendMessage), varargs...)
  173. }