mocks

package
v2.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BusObject

type BusObject struct {
	mock.Mock
}

BusObject is an autogenerated mock type for the BusObject type

func NewBusObject

func NewBusObject(t mockConstructorTestingTNewBusObject) *BusObject

NewBusObject creates a new instance of BusObject. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*BusObject) AddMatchSignal

func (_m *BusObject) AddMatchSignal(iface string, member string, options ...dbus.MatchOption) *dbus.Call

AddMatchSignal provides a mock function with given fields: iface, member, options

func (*BusObject) Call

func (_m *BusObject) Call(method string, flags dbus.Flags, args ...interface{}) *dbus.Call

Call provides a mock function with given fields: method, flags, args

func (*BusObject) CallWithContext

func (_m *BusObject) CallWithContext(ctx context.Context, method string, flags dbus.Flags, args ...interface{}) *dbus.Call

CallWithContext provides a mock function with given fields: ctx, method, flags, args

func (*BusObject) Destination

func (_m *BusObject) Destination() string

Destination provides a mock function with given fields:

func (*BusObject) GetProperty

func (_m *BusObject) GetProperty(p string) (dbus.Variant, error)

GetProperty provides a mock function with given fields: p

func (*BusObject) Go

func (_m *BusObject) Go(method string, flags dbus.Flags, ch chan *dbus.Call, args ...interface{}) *dbus.Call

Go provides a mock function with given fields: method, flags, ch, args

func (*BusObject) GoWithContext

func (_m *BusObject) GoWithContext(ctx context.Context, method string, flags dbus.Flags, ch chan *dbus.Call, args ...interface{}) *dbus.Call

GoWithContext provides a mock function with given fields: ctx, method, flags, ch, args

func (*BusObject) Path

func (_m *BusObject) Path() dbus.ObjectPath

Path provides a mock function with given fields:

func (*BusObject) RemoveMatchSignal

func (_m *BusObject) RemoveMatchSignal(iface string, member string, options ...dbus.MatchOption) *dbus.Call

RemoveMatchSignal provides a mock function with given fields: iface, member, options

func (*BusObject) SetProperty

func (_m *BusObject) SetProperty(p string, v interface{}) error

SetProperty provides a mock function with given fields: p, v

func (*BusObject) StoreProperty

func (_m *BusObject) StoreProperty(p string, value interface{}) error

StoreProperty provides a mock function with given fields: p, value

type IConn

type IConn struct {
	mock.Mock
	Sig chan<- *dbus.Signal
}

IConn is an autogenerated mock type for the IConn type

func NewIConn

func NewIConn(t mockConstructorTestingTNewIConn) *IConn

NewIConn creates a new instance of IConn. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*IConn) AddMatchSignal

func (_m *IConn) AddMatchSignal(options ...dbus.MatchOption) error

AddMatchSignal provides a mock function with given fields: options

func (*IConn) Close

func (_m *IConn) Close() error

Close provides a mock function with given fields:

func (*IConn) Signal

func (_m *IConn) Signal(ch chan<- *dbus.Signal)

Signal provides a mock function with given fields: ch

Jump to

Keyboard shortcuts

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