mocks_statsutil

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package mocks_statsutil is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockStatsUtil

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

MockStatsUtil is a mock of StatsUtil interface.

func NewMockStatsUtil

func NewMockStatsUtil(ctrl *gomock.Controller) *MockStatsUtil

NewMockStatsUtil creates a new mock instance.

func (*MockStatsUtil) CollectNetworkStats

func (m *MockStatsUtil) CollectNetworkStats(pid int, interfaces []native.NetInterface) (map[string]container.NetworkStats, error)

CollectNetworkStats mocks base method.

func (*MockStatsUtil) EXPECT

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

func (*MockStatsUtil) GetNumberOnlineCPUs

func (m *MockStatsUtil) GetNumberOnlineCPUs() (uint32, error)

GetNumberOnlineCPUs mocks base method.

func (*MockStatsUtil) GetSystemCPUUsage

func (m *MockStatsUtil) GetSystemCPUUsage() (uint64, error)

GetSystemCPUUsage mocks base method.

type MockStatsUtilMockRecorder

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

MockStatsUtilMockRecorder is the mock recorder for MockStatsUtil.

func (*MockStatsUtilMockRecorder) CollectNetworkStats

func (mr *MockStatsUtilMockRecorder) CollectNetworkStats(pid, interfaces any) *gomock.Call

CollectNetworkStats indicates an expected call of CollectNetworkStats.

func (*MockStatsUtilMockRecorder) GetNumberOnlineCPUs

func (mr *MockStatsUtilMockRecorder) GetNumberOnlineCPUs() *gomock.Call

GetNumberOnlineCPUs indicates an expected call of GetNumberOnlineCPUs.

func (*MockStatsUtilMockRecorder) GetSystemCPUUsage

func (mr *MockStatsUtilMockRecorder) GetSystemCPUUsage() *gomock.Call

GetSystemCPUUsage indicates an expected call of GetSystemCPUUsage.

Jump to

Keyboard shortcuts

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