mocktarantool

package
v1.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 23, 2025 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

type Connection struct {
	mock.Mock
}

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

func (*Connection) NewStream

func (_m *Connection) NewStream() (*v2.Stream, error)

NewStream provides a mock function with no fields

type Connection_Close_Call

type Connection_Close_Call struct {
	*mock.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 (*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

type Connection_Do_Call struct {
	*mock.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

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

NewStream is a helper method to define mock.On call

type Connection_NewStream_Call

type Connection_NewStream_Call struct {
	*mock.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 (*Connection_NewStream_Call) Run

func (*Connection_NewStream_Call) RunAndReturn

func (_c *Connection_NewStream_Call) RunAndReturn(run func() (*v2.Stream, error)) *Connection_NewStream_Call

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL