connection

package
v0.0.0-...-6a341f7 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockConnectionInterface

type MockConnectionInterface struct {
	mock.Mock
}

MockConnectionInterface is an autogenerated mock type for the ConnectionInterface type

func NewMockConnectionInterface

func NewMockConnectionInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockConnectionInterface

NewMockConnectionInterface creates a new instance of MockConnectionInterface. 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 (*MockConnectionInterface) Close

func (_m *MockConnectionInterface) Close() error

Close provides a mock function with given fields:

func (*MockConnectionInterface) EXPECT

func (*MockConnectionInterface) Run

Run provides a mock function with given fields: ctx, cmd

type MockConnectionInterface_Close_Call

type MockConnectionInterface_Close_Call struct {
	*mock.Call
}

MockConnectionInterface_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'

func (*MockConnectionInterface_Close_Call) Return

func (*MockConnectionInterface_Close_Call) Run

func (*MockConnectionInterface_Close_Call) RunAndReturn

type MockConnectionInterface_Expecter

type MockConnectionInterface_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockConnectionInterface_Expecter) Close

Close is a helper method to define mock.On call

func (*MockConnectionInterface_Expecter) Run

func (_e *MockConnectionInterface_Expecter) Run(ctx interface{}, cmd interface{}) *MockConnectionInterface_Run_Call

Run is a helper method to define mock.On call

  • ctx context.Context
  • cmd string

type MockConnectionInterface_Run_Call

type MockConnectionInterface_Run_Call struct {
	*mock.Call
}

MockConnectionInterface_Run_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Run'

func (*MockConnectionInterface_Run_Call) Return

func (*MockConnectionInterface_Run_Call) Run

func (*MockConnectionInterface_Run_Call) RunAndReturn

Jump to

Keyboard shortcuts

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