mocks

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2026 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockOSLayer

type MockOSLayer struct {
	mock.Mock
}

MockOSLayer is an autogenerated mock type for the OSLayer type

func NewMockOSLayer

func NewMockOSLayer(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockOSLayer

NewMockOSLayer creates a new instance of MockOSLayer. 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 (*MockOSLayer) EXPECT

func (_m *MockOSLayer) EXPECT() *MockOSLayer_Expecter

func (*MockOSLayer) FindProcess

func (_mock *MockOSLayer) FindProcess(pid int) (osfacade.Process, error)

FindProcess provides a mock function for the type MockOSLayer

func (*MockOSLayer) GOOS

func (_mock *MockOSLayer) GOOS() string

GOOS provides a mock function for the type MockOSLayer

type MockOSLayer_Expecter

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

func (*MockOSLayer_Expecter) FindProcess

func (_e *MockOSLayer_Expecter) FindProcess(pid interface{}) *MockOSLayer_FindProcess_Call

FindProcess is a helper method to define mock.On call

  • pid int

func (*MockOSLayer_Expecter) GOOS

GOOS is a helper method to define mock.On call

type MockOSLayer_FindProcess_Call

type MockOSLayer_FindProcess_Call struct {
	*mock.Call
}

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

func (*MockOSLayer_FindProcess_Call) Return

func (*MockOSLayer_FindProcess_Call) Run

func (*MockOSLayer_FindProcess_Call) RunAndReturn

type MockOSLayer_GOOS_Call

type MockOSLayer_GOOS_Call struct {
	*mock.Call
}

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

func (*MockOSLayer_GOOS_Call) Return

func (*MockOSLayer_GOOS_Call) Run

func (_c *MockOSLayer_GOOS_Call) Run(run func()) *MockOSLayer_GOOS_Call

func (*MockOSLayer_GOOS_Call) RunAndReturn

func (_c *MockOSLayer_GOOS_Call) RunAndReturn(run func() string) *MockOSLayer_GOOS_Call

Jump to

Keyboard shortcuts

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