opampmock

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2026 License: AGPL-3.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 MockConnectionManager

type MockConnectionManager struct {
	mock.Mock
}

MockConnectionManager is an autogenerated mock type for the ConnectionManager type

func NewMockConnectionManager

func NewMockConnectionManager(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockConnectionManager

NewMockConnectionManager creates a new instance of MockConnectionManager. 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 (*MockConnectionManager) AddConnection

func (_mock *MockConnectionManager) AddConnection(conn types.Connection, id string)

AddConnection provides a mock function for the type MockConnectionManager

func (*MockConnectionManager) DispatchRestartCommand

func (_mock *MockConnectionManager) DispatchRestartCommand(ctx context.Context) error

DispatchRestartCommand provides a mock function for the type MockConnectionManager

func (*MockConnectionManager) EXPECT

func (*MockConnectionManager) RemoveConnection

func (_mock *MockConnectionManager) RemoveConnection(conn types.Connection)

RemoveConnection provides a mock function for the type MockConnectionManager

type MockConnectionManager_AddConnection_Call

type MockConnectionManager_AddConnection_Call struct {
	*mock.Call
}

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

func (*MockConnectionManager_AddConnection_Call) Return

func (*MockConnectionManager_AddConnection_Call) Run

func (*MockConnectionManager_AddConnection_Call) RunAndReturn

type MockConnectionManager_DispatchRestartCommand_Call

type MockConnectionManager_DispatchRestartCommand_Call struct {
	*mock.Call
}

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

func (*MockConnectionManager_DispatchRestartCommand_Call) Return

func (*MockConnectionManager_DispatchRestartCommand_Call) Run

func (*MockConnectionManager_DispatchRestartCommand_Call) RunAndReturn

type MockConnectionManager_Expecter

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

func (*MockConnectionManager_Expecter) AddConnection

func (_e *MockConnectionManager_Expecter) AddConnection(conn interface{}, id interface{}) *MockConnectionManager_AddConnection_Call

AddConnection is a helper method to define mock.On call

  • conn types.Connection
  • id string

func (*MockConnectionManager_Expecter) DispatchRestartCommand

func (_e *MockConnectionManager_Expecter) DispatchRestartCommand(ctx interface{}) *MockConnectionManager_DispatchRestartCommand_Call

DispatchRestartCommand is a helper method to define mock.On call

  • ctx context.Context

func (*MockConnectionManager_Expecter) RemoveConnection

func (_e *MockConnectionManager_Expecter) RemoveConnection(conn interface{}) *MockConnectionManager_RemoveConnection_Call

RemoveConnection is a helper method to define mock.On call

  • conn types.Connection

type MockConnectionManager_RemoveConnection_Call

type MockConnectionManager_RemoveConnection_Call struct {
	*mock.Call
}

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

func (*MockConnectionManager_RemoveConnection_Call) Return

func (*MockConnectionManager_RemoveConnection_Call) Run

func (*MockConnectionManager_RemoveConnection_Call) RunAndReturn

Jump to

Keyboard shortcuts

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