@@ -46,44 +46,3 @@ type mqChannel interface {
46
46
Publish (string , string , bool , bool , amqp.Publishing ) error
47
47
Qos (int , int , bool ) error
48
48
}
49
-
50
- type mqDeleterTest struct {
51
- _deletePublisher func (* Publisher )
52
- _deleteConsumer func (* Consumer )
53
- }
54
-
55
- func (m * mqDeleterTest ) deletePublisher (p * Publisher ) {
56
- m ._deletePublisher (p )
57
- }
58
-
59
- func (m * mqDeleterTest ) deleteConsumer (c * Consumer ) {
60
- m ._deleteConsumer (c )
61
- }
62
-
63
- type mqChannelTest struct {
64
- _Close func () error
65
- _Consume func (string , string , bool , bool , bool , bool , amqp.Table ) (<- chan amqp.Delivery , error )
66
- _NotifyClose func (chan * amqp.Error ) chan * amqp.Error
67
- _Publish func (string , string , bool , bool , amqp.Publishing ) error
68
- _Qos func (int , int , bool ) error
69
- }
70
-
71
- func (m * mqChannelTest ) Close () error {
72
- return m ._Close ()
73
- }
74
-
75
- func (m * mqChannelTest ) Consume (name string , tag string , autoAck bool , exclusive bool , noLocal bool , noWait bool , args amqp.Table ) (<- chan amqp.Delivery , error ) {
76
- return m ._Consume (name , tag , autoAck , exclusive , noLocal , noWait , args )
77
- }
78
-
79
- func (m * mqChannelTest ) NotifyClose (c chan * amqp.Error ) chan * amqp.Error {
80
- return m ._NotifyClose (c )
81
- }
82
-
83
- func (m * mqChannelTest ) Publish (exchange string , key string , mandatory bool , immediate bool , msg amqp.Publishing ) error {
84
- return m ._Publish (exchange , key , mandatory , immediate , msg )
85
- }
86
-
87
- func (m * mqChannelTest ) Qos (prefetchCount int , prefetchSize int , global bool ) error {
88
- return m ._Qos (prefetchCount , prefetchSize , global )
89
- }
0 commit comments