0x4b53/amqp-rpc

View on GitHub
amqprpctest/client.go

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
package amqprpctest

import (
    amqprpc "github.com/0x4b53/amqp-rpc/v4"
)

// NewTestClient returns a client with a custom send function to use for testing.
func NewTestClient(sf amqprpc.SendFunc) *amqprpc.Client {
    c := amqprpc.NewClient("")
    c.Sender = sf

    return c
}