Documentation
¶
Overview ¶
Package mocks_statsutil is a generated GoMock package.
Index ¶
- type MockStatsUtil
- func (m *MockStatsUtil) CollectNetworkStats(arg0 int, arg1 []native.NetInterface) (map[string]container.NetworkStats, error)
- func (m *MockStatsUtil) EXPECT() *MockStatsUtilMockRecorder
- func (m *MockStatsUtil) GetNumberOnlineCPUs() (uint32, error)
- func (m *MockStatsUtil) GetSystemCPUUsage() (uint64, error)
- type MockStatsUtilMockRecorder
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(arg0 int, arg1 []native.NetInterface) (map[string]container.NetworkStats, error)
CollectNetworkStats mocks base method.
func (*MockStatsUtil) EXPECT ¶
func (m *MockStatsUtil) EXPECT() *MockStatsUtilMockRecorder
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(arg0, arg1 interface{}) *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.
Click to show internal directories.
Click to hide internal directories.