mocks

package
v0.0.0-...-95ad59f Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Probe

type Probe struct {
	mock.Mock
}

Probe is an autogenerated mock type for the Probe type

func NewProbe

func NewProbe(t interface {
	mock.TestingT
	Cleanup(func())
}) *Probe

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

func (_m *Probe) Close()

Close provides a mock function with no fields

func (*Probe) EXPECT

func (_m *Probe) EXPECT() *Probe_Expecter

func (*Probe) ProcessesByPID

func (_m *Probe) ProcessesByPID(now time.Time, collectStats bool) (map[int32]*procutil.Process, error)

ProcessesByPID provides a mock function with given fields: now, collectStats

func (*Probe) StatsForPIDs

func (_m *Probe) StatsForPIDs(pids []int32, now time.Time) (map[int32]*procutil.Stats, error)

StatsForPIDs provides a mock function with given fields: pids, now

func (*Probe) StatsWithPermByPID

func (_m *Probe) StatsWithPermByPID(pids []int32) (map[int32]*procutil.StatsWithPerm, error)

StatsWithPermByPID provides a mock function with given fields: pids

type Probe_Close_Call

type Probe_Close_Call struct {
	*mock.Call
}

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

func (*Probe_Close_Call) Return

func (_c *Probe_Close_Call) Return() *Probe_Close_Call

func (*Probe_Close_Call) Run

func (_c *Probe_Close_Call) Run(run func()) *Probe_Close_Call

func (*Probe_Close_Call) RunAndReturn

func (_c *Probe_Close_Call) RunAndReturn(run func()) *Probe_Close_Call

type Probe_Expecter

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

func (*Probe_Expecter) Close

func (_e *Probe_Expecter) Close() *Probe_Close_Call

Close is a helper method to define mock.On call

func (*Probe_Expecter) ProcessesByPID

func (_e *Probe_Expecter) ProcessesByPID(now interface{}, collectStats interface{}) *Probe_ProcessesByPID_Call

ProcessesByPID is a helper method to define mock.On call

  • now time.Time
  • collectStats bool

func (*Probe_Expecter) StatsForPIDs

func (_e *Probe_Expecter) StatsForPIDs(pids interface{}, now interface{}) *Probe_StatsForPIDs_Call

StatsForPIDs is a helper method to define mock.On call

  • pids []int32
  • now time.Time

func (*Probe_Expecter) StatsWithPermByPID

func (_e *Probe_Expecter) StatsWithPermByPID(pids interface{}) *Probe_StatsWithPermByPID_Call

StatsWithPermByPID is a helper method to define mock.On call

  • pids []int32

type Probe_ProcessesByPID_Call

type Probe_ProcessesByPID_Call struct {
	*mock.Call
}

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

func (*Probe_ProcessesByPID_Call) Return

func (*Probe_ProcessesByPID_Call) Run

func (_c *Probe_ProcessesByPID_Call) Run(run func(now time.Time, collectStats bool)) *Probe_ProcessesByPID_Call

func (*Probe_ProcessesByPID_Call) RunAndReturn

type Probe_StatsForPIDs_Call

type Probe_StatsForPIDs_Call struct {
	*mock.Call
}

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

func (*Probe_StatsForPIDs_Call) Return

func (*Probe_StatsForPIDs_Call) Run

func (_c *Probe_StatsForPIDs_Call) Run(run func(pids []int32, now time.Time)) *Probe_StatsForPIDs_Call

func (*Probe_StatsForPIDs_Call) RunAndReturn

func (_c *Probe_StatsForPIDs_Call) RunAndReturn(run func([]int32, time.Time) (map[int32]*procutil.Stats, error)) *Probe_StatsForPIDs_Call

type Probe_StatsWithPermByPID_Call

type Probe_StatsWithPermByPID_Call struct {
	*mock.Call
}

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

func (*Probe_StatsWithPermByPID_Call) Return

func (*Probe_StatsWithPermByPID_Call) Run

func (*Probe_StatsWithPermByPID_Call) RunAndReturn

Jump to

Keyboard shortcuts

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