mock_dbus

package
v0.4.0-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package mock_dbus is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockConnection

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

MockConnection is a mock of Connection interface.

func NewMockConnection

func NewMockConnection(ctrl *gomock.Controller) *MockConnection

NewMockConnection creates a new mock instance.

func (*MockConnection) Close

func (m *MockConnection) Close()

Close mocks base method.

func (*MockConnection) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockConnection) GetUnitPropertiesContext

func (m *MockConnection) GetUnitPropertiesContext(ctx context.Context, unit string) (map[string]any, error)

GetUnitPropertiesContext mocks base method.

func (*MockConnection) ReloadUnitContext

func (m *MockConnection) ReloadUnitContext(arg0 context.Context, arg1, arg2 string, arg3 chan<- string) (int, error)

ReloadUnitContext mocks base method.

func (*MockConnection) RestartUnitContext

func (m *MockConnection) RestartUnitContext(ctx context.Context, name, mode string, ch chan<- string) (int, error)

RestartUnitContext mocks base method.

type MockConnectionMockRecorder

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

MockConnectionMockRecorder is the mock recorder for MockConnection.

func (*MockConnectionMockRecorder) Close

func (mr *MockConnectionMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

func (*MockConnectionMockRecorder) GetUnitPropertiesContext

func (mr *MockConnectionMockRecorder) GetUnitPropertiesContext(ctx, unit any) *gomock.Call

GetUnitPropertiesContext indicates an expected call of GetUnitPropertiesContext.

func (*MockConnectionMockRecorder) ReloadUnitContext

func (mr *MockConnectionMockRecorder) ReloadUnitContext(arg0, arg1, arg2, arg3 any) *gomock.Call

ReloadUnitContext indicates an expected call of ReloadUnitContext.

func (*MockConnectionMockRecorder) RestartUnitContext

func (mr *MockConnectionMockRecorder) RestartUnitContext(ctx, name, mode, ch any) *gomock.Call

RestartUnitContext indicates an expected call of RestartUnitContext.

type MockSystem

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

MockSystem is a mock of System interface.

func NewMockSystem

func NewMockSystem(ctrl *gomock.Controller) *MockSystem

NewMockSystem creates a new mock instance.

func (*MockSystem) EXPECT

func (m *MockSystem) EXPECT() *MockSystemMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockSystem) NewConn

func (m *MockSystem) NewConn(ctx context.Context) (dbus.Connection, error)

NewConn mocks base method.

type MockSystemMockRecorder

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

MockSystemMockRecorder is the mock recorder for MockSystem.

func (*MockSystemMockRecorder) NewConn

func (mr *MockSystemMockRecorder) NewConn(ctx any) *gomock.Call

NewConn indicates an expected call of NewConn.

Jump to

Keyboard shortcuts

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