Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
Connection is an autogenerated mock type for the Connection type
func NewConnection ¶
func NewConnection(t interface {
mock.TestingT
Cleanup(func())
}) *Connection
NewConnection creates a new instance of Connection. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Connection) Close ¶
func (_m *Connection) Close() error
Close provides a mock function with no fields
func (*Connection) Do ¶
func (_m *Connection) Do(req v2.Request) *v2.Future
Do provides a mock function with given fields: req
func (*Connection) EXPECT ¶
func (_m *Connection) EXPECT() *Connection_Expecter
type Connection_Close_Call ¶
Connection_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'
func (*Connection_Close_Call) Return ¶
func (_c *Connection_Close_Call) Return(_a0 error) *Connection_Close_Call
func (*Connection_Close_Call) Run ¶
func (_c *Connection_Close_Call) Run(run func()) *Connection_Close_Call
func (*Connection_Close_Call) RunAndReturn ¶
func (_c *Connection_Close_Call) RunAndReturn(run func() error) *Connection_Close_Call
type Connection_Do_Call ¶
Connection_Do_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Do'
func (*Connection_Do_Call) Return ¶
func (_c *Connection_Do_Call) Return(_a0 *v2.Future) *Connection_Do_Call
func (*Connection_Do_Call) Run ¶
func (_c *Connection_Do_Call) Run(run func(req v2.Request)) *Connection_Do_Call
func (*Connection_Do_Call) RunAndReturn ¶
func (_c *Connection_Do_Call) RunAndReturn(run func(v2.Request) *v2.Future) *Connection_Do_Call
type Connection_Expecter ¶
type Connection_Expecter struct {
// contains filtered or unexported fields
}
func (*Connection_Expecter) Close ¶
func (_e *Connection_Expecter) Close() *Connection_Close_Call
Close is a helper method to define mock.On call
func (*Connection_Expecter) Do ¶
func (_e *Connection_Expecter) Do(req interface{}) *Connection_Do_Call
Do is a helper method to define mock.On call
- req v2.Request
func (*Connection_Expecter) NewStream ¶
func (_e *Connection_Expecter) NewStream() *Connection_NewStream_Call
NewStream is a helper method to define mock.On call
type Connection_NewStream_Call ¶
Connection_NewStream_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewStream'
func (*Connection_NewStream_Call) Return ¶
func (_c *Connection_NewStream_Call) Return(_a0 *v2.Stream, _a1 error) *Connection_NewStream_Call
func (*Connection_NewStream_Call) Run ¶
func (_c *Connection_NewStream_Call) Run(run func()) *Connection_NewStream_Call
func (*Connection_NewStream_Call) RunAndReturn ¶
func (_c *Connection_NewStream_Call) RunAndReturn(run func() (*v2.Stream, error)) *Connection_NewStream_Call