mocks

package
v0.0.0-...-45a9bcf Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SysProbeUtil

type SysProbeUtil struct {
	mock.Mock
}

SysProbeUtil is an autogenerated mock type for the SysProbeUtil type

func NewSysProbeUtil

func NewSysProbeUtil(t interface {
	mock.TestingT
	Cleanup(func())
}) *SysProbeUtil

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

func (_m *SysProbeUtil) EXPECT() *SysProbeUtil_Expecter

func (*SysProbeUtil) GetConnections

func (_m *SysProbeUtil) GetConnections(clientID string) (*process.Connections, error)

GetConnections provides a mock function with given fields: clientID

func (*SysProbeUtil) GetNetworkID

func (_m *SysProbeUtil) GetNetworkID() (string, error)

GetNetworkID provides a mock function with given fields:

func (*SysProbeUtil) GetPing

func (_m *SysProbeUtil) GetPing(clientID string, host string, count int, interval time.Duration, timeout time.Duration) ([]byte, error)

GetPing provides a mock function with given fields: clientID, host, count, interval, timeout

func (*SysProbeUtil) GetProcStats

func (_m *SysProbeUtil) GetProcStats(pids []int32) (*process.ProcStatsWithPermByPID, error)

GetProcStats provides a mock function with given fields: pids

func (*SysProbeUtil) GetTraceroute

func (_m *SysProbeUtil) GetTraceroute(clientID string, host string, port uint16, protocol payload.Protocol, maxTTL uint8, timeout time.Duration) ([]byte, error)

GetTraceroute provides a mock function with given fields: clientID, host, port, protocol, maxTTL, timeout

func (*SysProbeUtil) Register

func (_m *SysProbeUtil) Register(clientID string) error

Register provides a mock function with given fields: clientID

type SysProbeUtil_Expecter

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

func (*SysProbeUtil_Expecter) GetConnections

func (_e *SysProbeUtil_Expecter) GetConnections(clientID interface{}) *SysProbeUtil_GetConnections_Call

GetConnections is a helper method to define mock.On call

  • clientID string

func (*SysProbeUtil_Expecter) GetNetworkID

GetNetworkID is a helper method to define mock.On call

func (*SysProbeUtil_Expecter) GetPing

func (_e *SysProbeUtil_Expecter) GetPing(clientID interface{}, host interface{}, count interface{}, interval interface{}, timeout interface{}) *SysProbeUtil_GetPing_Call

GetPing is a helper method to define mock.On call

  • clientID string
  • host string
  • count int
  • interval time.Duration
  • timeout time.Duration

func (*SysProbeUtil_Expecter) GetProcStats

func (_e *SysProbeUtil_Expecter) GetProcStats(pids interface{}) *SysProbeUtil_GetProcStats_Call

GetProcStats is a helper method to define mock.On call

  • pids []int32

func (*SysProbeUtil_Expecter) GetTraceroute

func (_e *SysProbeUtil_Expecter) GetTraceroute(clientID interface{}, host interface{}, port interface{}, protocol interface{}, maxTTL interface{}, timeout interface{}) *SysProbeUtil_GetTraceroute_Call

GetTraceroute is a helper method to define mock.On call

  • clientID string
  • host string
  • port uint16
  • protocol payload.Protocol
  • maxTTL uint8
  • timeout time.Duration

func (*SysProbeUtil_Expecter) Register

func (_e *SysProbeUtil_Expecter) Register(clientID interface{}) *SysProbeUtil_Register_Call

Register is a helper method to define mock.On call

  • clientID string

type SysProbeUtil_GetConnections_Call

type SysProbeUtil_GetConnections_Call struct {
	*mock.Call
}

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

func (*SysProbeUtil_GetConnections_Call) Return

func (*SysProbeUtil_GetConnections_Call) Run

func (*SysProbeUtil_GetConnections_Call) RunAndReturn

type SysProbeUtil_GetNetworkID_Call

type SysProbeUtil_GetNetworkID_Call struct {
	*mock.Call
}

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

func (*SysProbeUtil_GetNetworkID_Call) Return

func (*SysProbeUtil_GetNetworkID_Call) Run

func (*SysProbeUtil_GetNetworkID_Call) RunAndReturn

type SysProbeUtil_GetPing_Call

type SysProbeUtil_GetPing_Call struct {
	*mock.Call
}

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

func (*SysProbeUtil_GetPing_Call) Return

func (*SysProbeUtil_GetPing_Call) Run

func (_c *SysProbeUtil_GetPing_Call) Run(run func(clientID string, host string, count int, interval time.Duration, timeout time.Duration)) *SysProbeUtil_GetPing_Call

func (*SysProbeUtil_GetPing_Call) RunAndReturn

type SysProbeUtil_GetProcStats_Call

type SysProbeUtil_GetProcStats_Call struct {
	*mock.Call
}

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

func (*SysProbeUtil_GetProcStats_Call) Return

func (*SysProbeUtil_GetProcStats_Call) Run

func (*SysProbeUtil_GetProcStats_Call) RunAndReturn

type SysProbeUtil_GetTraceroute_Call

type SysProbeUtil_GetTraceroute_Call struct {
	*mock.Call
}

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

func (*SysProbeUtil_GetTraceroute_Call) Return

func (*SysProbeUtil_GetTraceroute_Call) Run

func (_c *SysProbeUtil_GetTraceroute_Call) Run(run func(clientID string, host string, port uint16, protocol payload.Protocol, maxTTL uint8, timeout time.Duration)) *SysProbeUtil_GetTraceroute_Call

func (*SysProbeUtil_GetTraceroute_Call) RunAndReturn

type SysProbeUtil_Register_Call

type SysProbeUtil_Register_Call struct {
	*mock.Call
}

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

func (*SysProbeUtil_Register_Call) Return

func (*SysProbeUtil_Register_Call) Run

func (_c *SysProbeUtil_Register_Call) Run(run func(clientID string)) *SysProbeUtil_Register_Call

func (*SysProbeUtil_Register_Call) RunAndReturn

Jump to

Keyboard shortcuts

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