-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchannel_moq_test.go
677 lines (640 loc) · 20.1 KB
/
channel_moq_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
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
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
// Code generated by moq; DO NOT EDIT.
// github.com/matryer/moq
package amqpx
import (
"context"
"github.com/rabbitmq/amqp091-go"
"sync"
)
// Ensure, that ChannelMock does implement Channel.
// If this is not the case, regenerate this file with moq.
var _ Channel = &ChannelMock{}
// ChannelMock is a mock implementation of Channel.
//
// func TestSomethingThatUsesChannel(t *testing.T) {
//
// // make and configure a mocked Channel
// mockedChannel := &ChannelMock{
// CloseFunc: func() error {
// panic("mock out the Close method")
// },
// ConfirmFunc: func(noWait bool) error {
// panic("mock out the Confirm method")
// },
// ConsumeFunc: func(queue string, consumer string, autoAck bool, exclusive bool, noLocal bool, noWait bool, args amqp091.Table) (<-chan amqp091.Delivery, error) {
// panic("mock out the Consume method")
// },
// ExchangeDeclareFunc: func(name string, kind string, durable bool, autoDelete bool, internal bool, noWait bool, args amqp091.Table) error {
// panic("mock out the ExchangeDeclare method")
// },
// NotifyCancelFunc: func(stringCh chan string) chan string {
// panic("mock out the NotifyCancel method")
// },
// NotifyCloseFunc: func(errorCh chan *amqp091.Error) chan *amqp091.Error {
// panic("mock out the NotifyClose method")
// },
// NotifyReturnFunc: func(c chan amqp091.Return) chan amqp091.Return {
// panic("mock out the NotifyReturn method")
// },
// PublishWithDeferredConfirmWithContextFunc: func(ctx context.Context, exchange string, key string, mandatory bool, immediate bool, msg amqp091.Publishing) (*amqp091.DeferredConfirmation, error) {
// panic("mock out the PublishWithDeferredConfirmWithContext method")
// },
// QosFunc: func(prefetchCount int, prefetchSize int, global bool) error {
// panic("mock out the Qos method")
// },
// QueueBindFunc: func(name string, key string, exchange string, noWait bool, args amqp091.Table) error {
// panic("mock out the QueueBind method")
// },
// QueueDeclareFunc: func(name string, durable bool, autoDelete bool, exclusive bool, noWait bool, args amqp091.Table) (amqp091.Queue, error) {
// panic("mock out the QueueDeclare method")
// },
// }
//
// // use mockedChannel in code that requires Channel
// // and then make assertions.
//
// }
type ChannelMock struct {
// CloseFunc mocks the Close method.
CloseFunc func() error
// ConfirmFunc mocks the Confirm method.
ConfirmFunc func(noWait bool) error
// ConsumeFunc mocks the Consume method.
ConsumeFunc func(queue string, consumer string, autoAck bool, exclusive bool, noLocal bool, noWait bool, args amqp091.Table) (<-chan amqp091.Delivery, error)
// ExchangeDeclareFunc mocks the ExchangeDeclare method.
ExchangeDeclareFunc func(name string, kind string, durable bool, autoDelete bool, internal bool, noWait bool, args amqp091.Table) error
// NotifyCancelFunc mocks the NotifyCancel method.
NotifyCancelFunc func(stringCh chan string) chan string
// NotifyCloseFunc mocks the NotifyClose method.
NotifyCloseFunc func(errorCh chan *amqp091.Error) chan *amqp091.Error
// NotifyReturnFunc mocks the NotifyReturn method.
NotifyReturnFunc func(c chan amqp091.Return) chan amqp091.Return
// PublishWithDeferredConfirmWithContextFunc mocks the PublishWithDeferredConfirmWithContext method.
PublishWithDeferredConfirmWithContextFunc func(ctx context.Context, exchange string, key string, mandatory bool, immediate bool, msg amqp091.Publishing) (*amqp091.DeferredConfirmation, error)
// QosFunc mocks the Qos method.
QosFunc func(prefetchCount int, prefetchSize int, global bool) error
// QueueBindFunc mocks the QueueBind method.
QueueBindFunc func(name string, key string, exchange string, noWait bool, args amqp091.Table) error
// QueueDeclareFunc mocks the QueueDeclare method.
QueueDeclareFunc func(name string, durable bool, autoDelete bool, exclusive bool, noWait bool, args amqp091.Table) (amqp091.Queue, error)
// calls tracks calls to the methods.
calls struct {
// Close holds details about calls to the Close method.
Close []struct {
}
// Confirm holds details about calls to the Confirm method.
Confirm []struct {
// NoWait is the noWait argument value.
NoWait bool
}
// Consume holds details about calls to the Consume method.
Consume []struct {
// Queue is the queue argument value.
Queue string
// Consumer is the consumer argument value.
Consumer string
// AutoAck is the autoAck argument value.
AutoAck bool
// Exclusive is the exclusive argument value.
Exclusive bool
// NoLocal is the noLocal argument value.
NoLocal bool
// NoWait is the noWait argument value.
NoWait bool
// Args is the args argument value.
Args amqp091.Table
}
// ExchangeDeclare holds details about calls to the ExchangeDeclare method.
ExchangeDeclare []struct {
// Name is the name argument value.
Name string
// Kind is the kind argument value.
Kind string
// Durable is the durable argument value.
Durable bool
// AutoDelete is the autoDelete argument value.
AutoDelete bool
// Internal is the internal argument value.
Internal bool
// NoWait is the noWait argument value.
NoWait bool
// Args is the args argument value.
Args amqp091.Table
}
// NotifyCancel holds details about calls to the NotifyCancel method.
NotifyCancel []struct {
// StringCh is the stringCh argument value.
StringCh chan string
}
// NotifyClose holds details about calls to the NotifyClose method.
NotifyClose []struct {
// ErrorCh is the errorCh argument value.
ErrorCh chan *amqp091.Error
}
// NotifyReturn holds details about calls to the NotifyReturn method.
NotifyReturn []struct {
// C is the c argument value.
C chan amqp091.Return
}
// PublishWithDeferredConfirmWithContext holds details about calls to the PublishWithDeferredConfirmWithContext method.
PublishWithDeferredConfirmWithContext []struct {
// Ctx is the ctx argument value.
Ctx context.Context
// Exchange is the exchange argument value.
Exchange string
// Key is the key argument value.
Key string
// Mandatory is the mandatory argument value.
Mandatory bool
// Immediate is the immediate argument value.
Immediate bool
// Msg is the msg argument value.
Msg amqp091.Publishing
}
// Qos holds details about calls to the Qos method.
Qos []struct {
// PrefetchCount is the prefetchCount argument value.
PrefetchCount int
// PrefetchSize is the prefetchSize argument value.
PrefetchSize int
// Global is the global argument value.
Global bool
}
// QueueBind holds details about calls to the QueueBind method.
QueueBind []struct {
// Name is the name argument value.
Name string
// Key is the key argument value.
Key string
// Exchange is the exchange argument value.
Exchange string
// NoWait is the noWait argument value.
NoWait bool
// Args is the args argument value.
Args amqp091.Table
}
// QueueDeclare holds details about calls to the QueueDeclare method.
QueueDeclare []struct {
// Name is the name argument value.
Name string
// Durable is the durable argument value.
Durable bool
// AutoDelete is the autoDelete argument value.
AutoDelete bool
// Exclusive is the exclusive argument value.
Exclusive bool
// NoWait is the noWait argument value.
NoWait bool
// Args is the args argument value.
Args amqp091.Table
}
}
lockClose sync.RWMutex
lockConfirm sync.RWMutex
lockConsume sync.RWMutex
lockExchangeDeclare sync.RWMutex
lockNotifyCancel sync.RWMutex
lockNotifyClose sync.RWMutex
lockNotifyReturn sync.RWMutex
lockPublishWithDeferredConfirmWithContext sync.RWMutex
lockQos sync.RWMutex
lockQueueBind sync.RWMutex
lockQueueDeclare sync.RWMutex
}
// Close calls CloseFunc.
func (mock *ChannelMock) Close() error {
if mock.CloseFunc == nil {
panic("ChannelMock.CloseFunc: method is nil but Channel.Close was just called")
}
callInfo := struct {
}{}
mock.lockClose.Lock()
mock.calls.Close = append(mock.calls.Close, callInfo)
mock.lockClose.Unlock()
return mock.CloseFunc()
}
// CloseCalls gets all the calls that were made to Close.
// Check the length with:
//
// len(mockedChannel.CloseCalls())
func (mock *ChannelMock) CloseCalls() []struct {
} {
var calls []struct {
}
mock.lockClose.RLock()
calls = mock.calls.Close
mock.lockClose.RUnlock()
return calls
}
// Confirm calls ConfirmFunc.
func (mock *ChannelMock) Confirm(noWait bool) error {
if mock.ConfirmFunc == nil {
panic("ChannelMock.ConfirmFunc: method is nil but Channel.Confirm was just called")
}
callInfo := struct {
NoWait bool
}{
NoWait: noWait,
}
mock.lockConfirm.Lock()
mock.calls.Confirm = append(mock.calls.Confirm, callInfo)
mock.lockConfirm.Unlock()
return mock.ConfirmFunc(noWait)
}
// ConfirmCalls gets all the calls that were made to Confirm.
// Check the length with:
//
// len(mockedChannel.ConfirmCalls())
func (mock *ChannelMock) ConfirmCalls() []struct {
NoWait bool
} {
var calls []struct {
NoWait bool
}
mock.lockConfirm.RLock()
calls = mock.calls.Confirm
mock.lockConfirm.RUnlock()
return calls
}
// Consume calls ConsumeFunc.
func (mock *ChannelMock) Consume(queue string, consumer string, autoAck bool, exclusive bool, noLocal bool, noWait bool, args amqp091.Table) (<-chan amqp091.Delivery, error) {
if mock.ConsumeFunc == nil {
panic("ChannelMock.ConsumeFunc: method is nil but Channel.Consume was just called")
}
callInfo := struct {
Queue string
Consumer string
AutoAck bool
Exclusive bool
NoLocal bool
NoWait bool
Args amqp091.Table
}{
Queue: queue,
Consumer: consumer,
AutoAck: autoAck,
Exclusive: exclusive,
NoLocal: noLocal,
NoWait: noWait,
Args: args,
}
mock.lockConsume.Lock()
mock.calls.Consume = append(mock.calls.Consume, callInfo)
mock.lockConsume.Unlock()
return mock.ConsumeFunc(queue, consumer, autoAck, exclusive, noLocal, noWait, args)
}
// ConsumeCalls gets all the calls that were made to Consume.
// Check the length with:
//
// len(mockedChannel.ConsumeCalls())
func (mock *ChannelMock) ConsumeCalls() []struct {
Queue string
Consumer string
AutoAck bool
Exclusive bool
NoLocal bool
NoWait bool
Args amqp091.Table
} {
var calls []struct {
Queue string
Consumer string
AutoAck bool
Exclusive bool
NoLocal bool
NoWait bool
Args amqp091.Table
}
mock.lockConsume.RLock()
calls = mock.calls.Consume
mock.lockConsume.RUnlock()
return calls
}
// ExchangeDeclare calls ExchangeDeclareFunc.
func (mock *ChannelMock) ExchangeDeclare(name string, kind string, durable bool, autoDelete bool, internal bool, noWait bool, args amqp091.Table) error {
if mock.ExchangeDeclareFunc == nil {
panic("ChannelMock.ExchangeDeclareFunc: method is nil but Channel.ExchangeDeclare was just called")
}
callInfo := struct {
Name string
Kind string
Durable bool
AutoDelete bool
Internal bool
NoWait bool
Args amqp091.Table
}{
Name: name,
Kind: kind,
Durable: durable,
AutoDelete: autoDelete,
Internal: internal,
NoWait: noWait,
Args: args,
}
mock.lockExchangeDeclare.Lock()
mock.calls.ExchangeDeclare = append(mock.calls.ExchangeDeclare, callInfo)
mock.lockExchangeDeclare.Unlock()
return mock.ExchangeDeclareFunc(name, kind, durable, autoDelete, internal, noWait, args)
}
// ExchangeDeclareCalls gets all the calls that were made to ExchangeDeclare.
// Check the length with:
//
// len(mockedChannel.ExchangeDeclareCalls())
func (mock *ChannelMock) ExchangeDeclareCalls() []struct {
Name string
Kind string
Durable bool
AutoDelete bool
Internal bool
NoWait bool
Args amqp091.Table
} {
var calls []struct {
Name string
Kind string
Durable bool
AutoDelete bool
Internal bool
NoWait bool
Args amqp091.Table
}
mock.lockExchangeDeclare.RLock()
calls = mock.calls.ExchangeDeclare
mock.lockExchangeDeclare.RUnlock()
return calls
}
// NotifyCancel calls NotifyCancelFunc.
func (mock *ChannelMock) NotifyCancel(stringCh chan string) chan string {
if mock.NotifyCancelFunc == nil {
panic("ChannelMock.NotifyCancelFunc: method is nil but Channel.NotifyCancel was just called")
}
callInfo := struct {
StringCh chan string
}{
StringCh: stringCh,
}
mock.lockNotifyCancel.Lock()
mock.calls.NotifyCancel = append(mock.calls.NotifyCancel, callInfo)
mock.lockNotifyCancel.Unlock()
return mock.NotifyCancelFunc(stringCh)
}
// NotifyCancelCalls gets all the calls that were made to NotifyCancel.
// Check the length with:
//
// len(mockedChannel.NotifyCancelCalls())
func (mock *ChannelMock) NotifyCancelCalls() []struct {
StringCh chan string
} {
var calls []struct {
StringCh chan string
}
mock.lockNotifyCancel.RLock()
calls = mock.calls.NotifyCancel
mock.lockNotifyCancel.RUnlock()
return calls
}
// NotifyClose calls NotifyCloseFunc.
func (mock *ChannelMock) NotifyClose(errorCh chan *amqp091.Error) chan *amqp091.Error {
if mock.NotifyCloseFunc == nil {
panic("ChannelMock.NotifyCloseFunc: method is nil but Channel.NotifyClose was just called")
}
callInfo := struct {
ErrorCh chan *amqp091.Error
}{
ErrorCh: errorCh,
}
mock.lockNotifyClose.Lock()
mock.calls.NotifyClose = append(mock.calls.NotifyClose, callInfo)
mock.lockNotifyClose.Unlock()
return mock.NotifyCloseFunc(errorCh)
}
// NotifyCloseCalls gets all the calls that were made to NotifyClose.
// Check the length with:
//
// len(mockedChannel.NotifyCloseCalls())
func (mock *ChannelMock) NotifyCloseCalls() []struct {
ErrorCh chan *amqp091.Error
} {
var calls []struct {
ErrorCh chan *amqp091.Error
}
mock.lockNotifyClose.RLock()
calls = mock.calls.NotifyClose
mock.lockNotifyClose.RUnlock()
return calls
}
// NotifyReturn calls NotifyReturnFunc.
func (mock *ChannelMock) NotifyReturn(c chan amqp091.Return) chan amqp091.Return {
if mock.NotifyReturnFunc == nil {
panic("ChannelMock.NotifyReturnFunc: method is nil but Channel.NotifyReturn was just called")
}
callInfo := struct {
C chan amqp091.Return
}{
C: c,
}
mock.lockNotifyReturn.Lock()
mock.calls.NotifyReturn = append(mock.calls.NotifyReturn, callInfo)
mock.lockNotifyReturn.Unlock()
return mock.NotifyReturnFunc(c)
}
// NotifyReturnCalls gets all the calls that were made to NotifyReturn.
// Check the length with:
//
// len(mockedChannel.NotifyReturnCalls())
func (mock *ChannelMock) NotifyReturnCalls() []struct {
C chan amqp091.Return
} {
var calls []struct {
C chan amqp091.Return
}
mock.lockNotifyReturn.RLock()
calls = mock.calls.NotifyReturn
mock.lockNotifyReturn.RUnlock()
return calls
}
// PublishWithDeferredConfirmWithContext calls PublishWithDeferredConfirmWithContextFunc.
func (mock *ChannelMock) PublishWithDeferredConfirmWithContext(ctx context.Context, exchange string, key string, mandatory bool, immediate bool, msg amqp091.Publishing) (*amqp091.DeferredConfirmation, error) {
if mock.PublishWithDeferredConfirmWithContextFunc == nil {
panic("ChannelMock.PublishWithDeferredConfirmWithContextFunc: method is nil but Channel.PublishWithDeferredConfirmWithContext was just called")
}
callInfo := struct {
Ctx context.Context
Exchange string
Key string
Mandatory bool
Immediate bool
Msg amqp091.Publishing
}{
Ctx: ctx,
Exchange: exchange,
Key: key,
Mandatory: mandatory,
Immediate: immediate,
Msg: msg,
}
mock.lockPublishWithDeferredConfirmWithContext.Lock()
mock.calls.PublishWithDeferredConfirmWithContext = append(mock.calls.PublishWithDeferredConfirmWithContext, callInfo)
mock.lockPublishWithDeferredConfirmWithContext.Unlock()
return mock.PublishWithDeferredConfirmWithContextFunc(ctx, exchange, key, mandatory, immediate, msg)
}
// PublishWithDeferredConfirmWithContextCalls gets all the calls that were made to PublishWithDeferredConfirmWithContext.
// Check the length with:
//
// len(mockedChannel.PublishWithDeferredConfirmWithContextCalls())
func (mock *ChannelMock) PublishWithDeferredConfirmWithContextCalls() []struct {
Ctx context.Context
Exchange string
Key string
Mandatory bool
Immediate bool
Msg amqp091.Publishing
} {
var calls []struct {
Ctx context.Context
Exchange string
Key string
Mandatory bool
Immediate bool
Msg amqp091.Publishing
}
mock.lockPublishWithDeferredConfirmWithContext.RLock()
calls = mock.calls.PublishWithDeferredConfirmWithContext
mock.lockPublishWithDeferredConfirmWithContext.RUnlock()
return calls
}
// Qos calls QosFunc.
func (mock *ChannelMock) Qos(prefetchCount int, prefetchSize int, global bool) error {
if mock.QosFunc == nil {
panic("ChannelMock.QosFunc: method is nil but Channel.Qos was just called")
}
callInfo := struct {
PrefetchCount int
PrefetchSize int
Global bool
}{
PrefetchCount: prefetchCount,
PrefetchSize: prefetchSize,
Global: global,
}
mock.lockQos.Lock()
mock.calls.Qos = append(mock.calls.Qos, callInfo)
mock.lockQos.Unlock()
return mock.QosFunc(prefetchCount, prefetchSize, global)
}
// QosCalls gets all the calls that were made to Qos.
// Check the length with:
//
// len(mockedChannel.QosCalls())
func (mock *ChannelMock) QosCalls() []struct {
PrefetchCount int
PrefetchSize int
Global bool
} {
var calls []struct {
PrefetchCount int
PrefetchSize int
Global bool
}
mock.lockQos.RLock()
calls = mock.calls.Qos
mock.lockQos.RUnlock()
return calls
}
// QueueBind calls QueueBindFunc.
func (mock *ChannelMock) QueueBind(name string, key string, exchange string, noWait bool, args amqp091.Table) error {
if mock.QueueBindFunc == nil {
panic("ChannelMock.QueueBindFunc: method is nil but Channel.QueueBind was just called")
}
callInfo := struct {
Name string
Key string
Exchange string
NoWait bool
Args amqp091.Table
}{
Name: name,
Key: key,
Exchange: exchange,
NoWait: noWait,
Args: args,
}
mock.lockQueueBind.Lock()
mock.calls.QueueBind = append(mock.calls.QueueBind, callInfo)
mock.lockQueueBind.Unlock()
return mock.QueueBindFunc(name, key, exchange, noWait, args)
}
// QueueBindCalls gets all the calls that were made to QueueBind.
// Check the length with:
//
// len(mockedChannel.QueueBindCalls())
func (mock *ChannelMock) QueueBindCalls() []struct {
Name string
Key string
Exchange string
NoWait bool
Args amqp091.Table
} {
var calls []struct {
Name string
Key string
Exchange string
NoWait bool
Args amqp091.Table
}
mock.lockQueueBind.RLock()
calls = mock.calls.QueueBind
mock.lockQueueBind.RUnlock()
return calls
}
// QueueDeclare calls QueueDeclareFunc.
func (mock *ChannelMock) QueueDeclare(name string, durable bool, autoDelete bool, exclusive bool, noWait bool, args amqp091.Table) (amqp091.Queue, error) {
if mock.QueueDeclareFunc == nil {
panic("ChannelMock.QueueDeclareFunc: method is nil but Channel.QueueDeclare was just called")
}
callInfo := struct {
Name string
Durable bool
AutoDelete bool
Exclusive bool
NoWait bool
Args amqp091.Table
}{
Name: name,
Durable: durable,
AutoDelete: autoDelete,
Exclusive: exclusive,
NoWait: noWait,
Args: args,
}
mock.lockQueueDeclare.Lock()
mock.calls.QueueDeclare = append(mock.calls.QueueDeclare, callInfo)
mock.lockQueueDeclare.Unlock()
return mock.QueueDeclareFunc(name, durable, autoDelete, exclusive, noWait, args)
}
// QueueDeclareCalls gets all the calls that were made to QueueDeclare.
// Check the length with:
//
// len(mockedChannel.QueueDeclareCalls())
func (mock *ChannelMock) QueueDeclareCalls() []struct {
Name string
Durable bool
AutoDelete bool
Exclusive bool
NoWait bool
Args amqp091.Table
} {
var calls []struct {
Name string
Durable bool
AutoDelete bool
Exclusive bool
NoWait bool
Args amqp091.Table
}
mock.lockQueueDeclare.RLock()
calls = mock.calls.QueueDeclare
mock.lockQueueDeclare.RUnlock()
return calls
}