mocks_brightness

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockDBusConn

type MockDBusConn struct {
	mock.Mock
}

MockDBusConn is an autogenerated mock type for the DBusConn type

func NewMockDBusConn

func NewMockDBusConn(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockDBusConn

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

func (_m *MockDBusConn) Close() error

Close provides a mock function with no fields

func (*MockDBusConn) EXPECT

func (_m *MockDBusConn) EXPECT() *MockDBusConn_Expecter

func (*MockDBusConn) Object

func (_m *MockDBusConn) Object(dest string, path dbus.ObjectPath) dbus.BusObject

Object provides a mock function with given fields: dest, path

type MockDBusConn_Close_Call

type MockDBusConn_Close_Call struct {
	*mock.Call
}

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

func (*MockDBusConn_Close_Call) Return

func (*MockDBusConn_Close_Call) Run

func (_c *MockDBusConn_Close_Call) Run(run func()) *MockDBusConn_Close_Call

func (*MockDBusConn_Close_Call) RunAndReturn

func (_c *MockDBusConn_Close_Call) RunAndReturn(run func() error) *MockDBusConn_Close_Call

type MockDBusConn_Expecter

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

func (*MockDBusConn_Expecter) Close

Close is a helper method to define mock.On call

func (*MockDBusConn_Expecter) Object

func (_e *MockDBusConn_Expecter) Object(dest interface{}, path interface{}) *MockDBusConn_Object_Call

Object is a helper method to define mock.On call

  • dest string
  • path dbus.ObjectPath

type MockDBusConn_Object_Call

type MockDBusConn_Object_Call struct {
	*mock.Call
}

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

func (*MockDBusConn_Object_Call) Return

func (*MockDBusConn_Object_Call) Run

func (*MockDBusConn_Object_Call) RunAndReturn

Jump to

Keyboard shortcuts

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