peake100/rogerRabbit-go

View on GitHub
pkg/amqp/connectionTester.go

Summary

Maintainability
A
0 mins
Test Coverage
package amqp

// ConnectionTesting offers methods for running tests with Connection.
type ConnectionTesting struct {
    conn *Connection
    TransportTesting
}

// UnderlyingConn returns the current underlying streadway/amqp.Connection.
func (tester *ConnectionTesting) UnderlyingConn() *BasicConnection {
    return tester.conn.underlyingConn
}