mocks

package
v0.0.0-...-a709993 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 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 given fields:

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

Jump to

Keyboard shortcuts

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