agentproctest

package
v2.10.2 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Overview

Package agentproctest contains utility functions for testing process management in the agent.

Package agentproctest is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateProcess

func GenerateProcess(t *testing.T, fs afero.Fs, muts ...func(*agentproc.Process)) agentproc.Process

Types

type MockSyscaller

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

MockSyscaller is a mock of Syscaller interface.

func NewMockSyscaller

func NewMockSyscaller(ctrl *gomock.Controller) *MockSyscaller

NewMockSyscaller creates a new mock instance.

func (*MockSyscaller) EXPECT

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

func (*MockSyscaller) GetPriority

func (m *MockSyscaller) GetPriority(arg0 int32) (int, error)

GetPriority mocks base method.

func (*MockSyscaller) Kill

func (m *MockSyscaller) Kill(arg0 int32, arg1 syscall.Signal) error

Kill mocks base method.

func (*MockSyscaller) SetPriority

func (m *MockSyscaller) SetPriority(arg0 int32, arg1 int) error

SetPriority mocks base method.

type MockSyscallerMockRecorder

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

MockSyscallerMockRecorder is the mock recorder for MockSyscaller.

func (*MockSyscallerMockRecorder) GetPriority

func (mr *MockSyscallerMockRecorder) GetPriority(arg0 any) *gomock.Call

GetPriority indicates an expected call of GetPriority.

func (*MockSyscallerMockRecorder) Kill

func (mr *MockSyscallerMockRecorder) Kill(arg0, arg1 any) *gomock.Call

Kill indicates an expected call of Kill.

func (*MockSyscallerMockRecorder) SetPriority

func (mr *MockSyscallerMockRecorder) SetPriority(arg0, arg1 any) *gomock.Call

SetPriority indicates an expected call of SetPriority.

Jump to

Keyboard shortcuts

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