Regen mocks using go 1.18
Generated by ./hack/update-mocks.sh using go 1.18 Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
@@ -21,66 +21,38 @@ limitations under the License.
|
||||
package testing
|
||||
|
||||
import (
|
||||
reflect "reflect"
|
||||
|
||||
gomock "github.com/golang/mock/gomock"
|
||||
events "github.com/google/cadvisor/events"
|
||||
v1 "github.com/google/cadvisor/info/v1"
|
||||
v2 "github.com/google/cadvisor/info/v2"
|
||||
reflect "reflect"
|
||||
)
|
||||
|
||||
// MockInterface is a mock of Interface interface
|
||||
// MockInterface is a mock of Interface interface.
|
||||
type MockInterface struct {
|
||||
ctrl *gomock.Controller
|
||||
recorder *MockInterfaceMockRecorder
|
||||
}
|
||||
|
||||
// MockInterfaceMockRecorder is the mock recorder for MockInterface
|
||||
// MockInterfaceMockRecorder is the mock recorder for MockInterface.
|
||||
type MockInterfaceMockRecorder struct {
|
||||
mock *MockInterface
|
||||
}
|
||||
|
||||
// NewMockInterface creates a new mock instance
|
||||
// NewMockInterface creates a new mock instance.
|
||||
func NewMockInterface(ctrl *gomock.Controller) *MockInterface {
|
||||
mock := &MockInterface{ctrl: ctrl}
|
||||
mock.recorder = &MockInterfaceMockRecorder{mock}
|
||||
return mock
|
||||
}
|
||||
|
||||
// EXPECT returns an object that allows the caller to indicate expected use
|
||||
// EXPECT returns an object that allows the caller to indicate expected use.
|
||||
func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder {
|
||||
return m.recorder
|
||||
}
|
||||
|
||||
// Start mocks base method
|
||||
func (m *MockInterface) Start() error {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "Start")
|
||||
ret0, _ := ret[0].(error)
|
||||
return ret0
|
||||
}
|
||||
|
||||
// Start indicates an expected call of Start
|
||||
func (mr *MockInterfaceMockRecorder) Start() *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Start", reflect.TypeOf((*MockInterface)(nil).Start))
|
||||
}
|
||||
|
||||
// DockerContainer mocks base method
|
||||
func (m *MockInterface) DockerContainer(name string, req *v1.ContainerInfoRequest) (v1.ContainerInfo, error) {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "DockerContainer", name, req)
|
||||
ret0, _ := ret[0].(v1.ContainerInfo)
|
||||
ret1, _ := ret[1].(error)
|
||||
return ret0, ret1
|
||||
}
|
||||
|
||||
// DockerContainer indicates an expected call of DockerContainer
|
||||
func (mr *MockInterfaceMockRecorder) DockerContainer(name, req interface{}) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DockerContainer", reflect.TypeOf((*MockInterface)(nil).DockerContainer), name, req)
|
||||
}
|
||||
|
||||
// ContainerInfo mocks base method
|
||||
// ContainerInfo mocks base method.
|
||||
func (m *MockInterface) ContainerInfo(name string, req *v1.ContainerInfoRequest) (*v1.ContainerInfo, error) {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "ContainerInfo", name, req)
|
||||
@@ -89,13 +61,13 @@ func (m *MockInterface) ContainerInfo(name string, req *v1.ContainerInfoRequest)
|
||||
return ret0, ret1
|
||||
}
|
||||
|
||||
// ContainerInfo indicates an expected call of ContainerInfo
|
||||
// ContainerInfo indicates an expected call of ContainerInfo.
|
||||
func (mr *MockInterfaceMockRecorder) ContainerInfo(name, req interface{}) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainerInfo", reflect.TypeOf((*MockInterface)(nil).ContainerInfo), name, req)
|
||||
}
|
||||
|
||||
// ContainerInfoV2 mocks base method
|
||||
// ContainerInfoV2 mocks base method.
|
||||
func (m *MockInterface) ContainerInfoV2(name string, options v2.RequestOptions) (map[string]v2.ContainerInfo, error) {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "ContainerInfoV2", name, options)
|
||||
@@ -104,118 +76,28 @@ func (m *MockInterface) ContainerInfoV2(name string, options v2.RequestOptions)
|
||||
return ret0, ret1
|
||||
}
|
||||
|
||||
// ContainerInfoV2 indicates an expected call of ContainerInfoV2
|
||||
// ContainerInfoV2 indicates an expected call of ContainerInfoV2.
|
||||
func (mr *MockInterfaceMockRecorder) ContainerInfoV2(name, options interface{}) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainerInfoV2", reflect.TypeOf((*MockInterface)(nil).ContainerInfoV2), name, options)
|
||||
}
|
||||
|
||||
// GetRequestedContainersInfo mocks base method
|
||||
func (m *MockInterface) GetRequestedContainersInfo(containerName string, options v2.RequestOptions) (map[string]*v1.ContainerInfo, error) {
|
||||
// DockerContainer mocks base method.
|
||||
func (m *MockInterface) DockerContainer(name string, req *v1.ContainerInfoRequest) (v1.ContainerInfo, error) {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "GetRequestedContainersInfo", containerName, options)
|
||||
ret0, _ := ret[0].(map[string]*v1.ContainerInfo)
|
||||
ret := m.ctrl.Call(m, "DockerContainer", name, req)
|
||||
ret0, _ := ret[0].(v1.ContainerInfo)
|
||||
ret1, _ := ret[1].(error)
|
||||
return ret0, ret1
|
||||
}
|
||||
|
||||
// GetRequestedContainersInfo indicates an expected call of GetRequestedContainersInfo
|
||||
func (mr *MockInterfaceMockRecorder) GetRequestedContainersInfo(containerName, options interface{}) *gomock.Call {
|
||||
// DockerContainer indicates an expected call of DockerContainer.
|
||||
func (mr *MockInterfaceMockRecorder) DockerContainer(name, req interface{}) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRequestedContainersInfo", reflect.TypeOf((*MockInterface)(nil).GetRequestedContainersInfo), containerName, options)
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DockerContainer", reflect.TypeOf((*MockInterface)(nil).DockerContainer), name, req)
|
||||
}
|
||||
|
||||
// SubcontainerInfo mocks base method
|
||||
func (m *MockInterface) SubcontainerInfo(name string, req *v1.ContainerInfoRequest) (map[string]*v1.ContainerInfo, error) {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "SubcontainerInfo", name, req)
|
||||
ret0, _ := ret[0].(map[string]*v1.ContainerInfo)
|
||||
ret1, _ := ret[1].(error)
|
||||
return ret0, ret1
|
||||
}
|
||||
|
||||
// SubcontainerInfo indicates an expected call of SubcontainerInfo
|
||||
func (mr *MockInterfaceMockRecorder) SubcontainerInfo(name, req interface{}) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SubcontainerInfo", reflect.TypeOf((*MockInterface)(nil).SubcontainerInfo), name, req)
|
||||
}
|
||||
|
||||
// MachineInfo mocks base method
|
||||
func (m *MockInterface) MachineInfo() (*v1.MachineInfo, error) {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "MachineInfo")
|
||||
ret0, _ := ret[0].(*v1.MachineInfo)
|
||||
ret1, _ := ret[1].(error)
|
||||
return ret0, ret1
|
||||
}
|
||||
|
||||
// MachineInfo indicates an expected call of MachineInfo
|
||||
func (mr *MockInterfaceMockRecorder) MachineInfo() *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MachineInfo", reflect.TypeOf((*MockInterface)(nil).MachineInfo))
|
||||
}
|
||||
|
||||
// VersionInfo mocks base method
|
||||
func (m *MockInterface) VersionInfo() (*v1.VersionInfo, error) {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "VersionInfo")
|
||||
ret0, _ := ret[0].(*v1.VersionInfo)
|
||||
ret1, _ := ret[1].(error)
|
||||
return ret0, ret1
|
||||
}
|
||||
|
||||
// VersionInfo indicates an expected call of VersionInfo
|
||||
func (mr *MockInterfaceMockRecorder) VersionInfo() *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VersionInfo", reflect.TypeOf((*MockInterface)(nil).VersionInfo))
|
||||
}
|
||||
|
||||
// ImagesFsInfo mocks base method
|
||||
func (m *MockInterface) ImagesFsInfo() (v2.FsInfo, error) {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "ImagesFsInfo")
|
||||
ret0, _ := ret[0].(v2.FsInfo)
|
||||
ret1, _ := ret[1].(error)
|
||||
return ret0, ret1
|
||||
}
|
||||
|
||||
// ImagesFsInfo indicates an expected call of ImagesFsInfo
|
||||
func (mr *MockInterfaceMockRecorder) ImagesFsInfo() *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ImagesFsInfo", reflect.TypeOf((*MockInterface)(nil).ImagesFsInfo))
|
||||
}
|
||||
|
||||
// RootFsInfo mocks base method
|
||||
func (m *MockInterface) RootFsInfo() (v2.FsInfo, error) {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "RootFsInfo")
|
||||
ret0, _ := ret[0].(v2.FsInfo)
|
||||
ret1, _ := ret[1].(error)
|
||||
return ret0, ret1
|
||||
}
|
||||
|
||||
// RootFsInfo indicates an expected call of RootFsInfo
|
||||
func (mr *MockInterfaceMockRecorder) RootFsInfo() *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RootFsInfo", reflect.TypeOf((*MockInterface)(nil).RootFsInfo))
|
||||
}
|
||||
|
||||
// WatchEvents mocks base method
|
||||
func (m *MockInterface) WatchEvents(request *events.Request) (*events.EventChannel, error) {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "WatchEvents", request)
|
||||
ret0, _ := ret[0].(*events.EventChannel)
|
||||
ret1, _ := ret[1].(error)
|
||||
return ret0, ret1
|
||||
}
|
||||
|
||||
// WatchEvents indicates an expected call of WatchEvents
|
||||
func (mr *MockInterfaceMockRecorder) WatchEvents(request interface{}) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WatchEvents", reflect.TypeOf((*MockInterface)(nil).WatchEvents), request)
|
||||
}
|
||||
|
||||
// GetDirFsInfo mocks base method
|
||||
// GetDirFsInfo mocks base method.
|
||||
func (m *MockInterface) GetDirFsInfo(path string) (v2.FsInfo, error) {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "GetDirFsInfo", path)
|
||||
@@ -224,36 +106,155 @@ func (m *MockInterface) GetDirFsInfo(path string) (v2.FsInfo, error) {
|
||||
return ret0, ret1
|
||||
}
|
||||
|
||||
// GetDirFsInfo indicates an expected call of GetDirFsInfo
|
||||
// GetDirFsInfo indicates an expected call of GetDirFsInfo.
|
||||
func (mr *MockInterfaceMockRecorder) GetDirFsInfo(path interface{}) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDirFsInfo", reflect.TypeOf((*MockInterface)(nil).GetDirFsInfo), path)
|
||||
}
|
||||
|
||||
// MockImageFsInfoProvider is a mock of ImageFsInfoProvider interface
|
||||
// GetRequestedContainersInfo mocks base method.
|
||||
func (m *MockInterface) GetRequestedContainersInfo(containerName string, options v2.RequestOptions) (map[string]*v1.ContainerInfo, error) {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "GetRequestedContainersInfo", containerName, options)
|
||||
ret0, _ := ret[0].(map[string]*v1.ContainerInfo)
|
||||
ret1, _ := ret[1].(error)
|
||||
return ret0, ret1
|
||||
}
|
||||
|
||||
// GetRequestedContainersInfo indicates an expected call of GetRequestedContainersInfo.
|
||||
func (mr *MockInterfaceMockRecorder) GetRequestedContainersInfo(containerName, options interface{}) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRequestedContainersInfo", reflect.TypeOf((*MockInterface)(nil).GetRequestedContainersInfo), containerName, options)
|
||||
}
|
||||
|
||||
// ImagesFsInfo mocks base method.
|
||||
func (m *MockInterface) ImagesFsInfo() (v2.FsInfo, error) {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "ImagesFsInfo")
|
||||
ret0, _ := ret[0].(v2.FsInfo)
|
||||
ret1, _ := ret[1].(error)
|
||||
return ret0, ret1
|
||||
}
|
||||
|
||||
// ImagesFsInfo indicates an expected call of ImagesFsInfo.
|
||||
func (mr *MockInterfaceMockRecorder) ImagesFsInfo() *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ImagesFsInfo", reflect.TypeOf((*MockInterface)(nil).ImagesFsInfo))
|
||||
}
|
||||
|
||||
// MachineInfo mocks base method.
|
||||
func (m *MockInterface) MachineInfo() (*v1.MachineInfo, error) {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "MachineInfo")
|
||||
ret0, _ := ret[0].(*v1.MachineInfo)
|
||||
ret1, _ := ret[1].(error)
|
||||
return ret0, ret1
|
||||
}
|
||||
|
||||
// MachineInfo indicates an expected call of MachineInfo.
|
||||
func (mr *MockInterfaceMockRecorder) MachineInfo() *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MachineInfo", reflect.TypeOf((*MockInterface)(nil).MachineInfo))
|
||||
}
|
||||
|
||||
// RootFsInfo mocks base method.
|
||||
func (m *MockInterface) RootFsInfo() (v2.FsInfo, error) {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "RootFsInfo")
|
||||
ret0, _ := ret[0].(v2.FsInfo)
|
||||
ret1, _ := ret[1].(error)
|
||||
return ret0, ret1
|
||||
}
|
||||
|
||||
// RootFsInfo indicates an expected call of RootFsInfo.
|
||||
func (mr *MockInterfaceMockRecorder) RootFsInfo() *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RootFsInfo", reflect.TypeOf((*MockInterface)(nil).RootFsInfo))
|
||||
}
|
||||
|
||||
// Start mocks base method.
|
||||
func (m *MockInterface) Start() error {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "Start")
|
||||
ret0, _ := ret[0].(error)
|
||||
return ret0
|
||||
}
|
||||
|
||||
// Start indicates an expected call of Start.
|
||||
func (mr *MockInterfaceMockRecorder) Start() *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Start", reflect.TypeOf((*MockInterface)(nil).Start))
|
||||
}
|
||||
|
||||
// SubcontainerInfo mocks base method.
|
||||
func (m *MockInterface) SubcontainerInfo(name string, req *v1.ContainerInfoRequest) (map[string]*v1.ContainerInfo, error) {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "SubcontainerInfo", name, req)
|
||||
ret0, _ := ret[0].(map[string]*v1.ContainerInfo)
|
||||
ret1, _ := ret[1].(error)
|
||||
return ret0, ret1
|
||||
}
|
||||
|
||||
// SubcontainerInfo indicates an expected call of SubcontainerInfo.
|
||||
func (mr *MockInterfaceMockRecorder) SubcontainerInfo(name, req interface{}) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SubcontainerInfo", reflect.TypeOf((*MockInterface)(nil).SubcontainerInfo), name, req)
|
||||
}
|
||||
|
||||
// VersionInfo mocks base method.
|
||||
func (m *MockInterface) VersionInfo() (*v1.VersionInfo, error) {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "VersionInfo")
|
||||
ret0, _ := ret[0].(*v1.VersionInfo)
|
||||
ret1, _ := ret[1].(error)
|
||||
return ret0, ret1
|
||||
}
|
||||
|
||||
// VersionInfo indicates an expected call of VersionInfo.
|
||||
func (mr *MockInterfaceMockRecorder) VersionInfo() *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VersionInfo", reflect.TypeOf((*MockInterface)(nil).VersionInfo))
|
||||
}
|
||||
|
||||
// WatchEvents mocks base method.
|
||||
func (m *MockInterface) WatchEvents(request *events.Request) (*events.EventChannel, error) {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "WatchEvents", request)
|
||||
ret0, _ := ret[0].(*events.EventChannel)
|
||||
ret1, _ := ret[1].(error)
|
||||
return ret0, ret1
|
||||
}
|
||||
|
||||
// WatchEvents indicates an expected call of WatchEvents.
|
||||
func (mr *MockInterfaceMockRecorder) WatchEvents(request interface{}) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WatchEvents", reflect.TypeOf((*MockInterface)(nil).WatchEvents), request)
|
||||
}
|
||||
|
||||
// MockImageFsInfoProvider is a mock of ImageFsInfoProvider interface.
|
||||
type MockImageFsInfoProvider struct {
|
||||
ctrl *gomock.Controller
|
||||
recorder *MockImageFsInfoProviderMockRecorder
|
||||
}
|
||||
|
||||
// MockImageFsInfoProviderMockRecorder is the mock recorder for MockImageFsInfoProvider
|
||||
// MockImageFsInfoProviderMockRecorder is the mock recorder for MockImageFsInfoProvider.
|
||||
type MockImageFsInfoProviderMockRecorder struct {
|
||||
mock *MockImageFsInfoProvider
|
||||
}
|
||||
|
||||
// NewMockImageFsInfoProvider creates a new mock instance
|
||||
// NewMockImageFsInfoProvider creates a new mock instance.
|
||||
func NewMockImageFsInfoProvider(ctrl *gomock.Controller) *MockImageFsInfoProvider {
|
||||
mock := &MockImageFsInfoProvider{ctrl: ctrl}
|
||||
mock.recorder = &MockImageFsInfoProviderMockRecorder{mock}
|
||||
return mock
|
||||
}
|
||||
|
||||
// EXPECT returns an object that allows the caller to indicate expected use
|
||||
// EXPECT returns an object that allows the caller to indicate expected use.
|
||||
func (m *MockImageFsInfoProvider) EXPECT() *MockImageFsInfoProviderMockRecorder {
|
||||
return m.recorder
|
||||
}
|
||||
|
||||
// ImageFsInfoLabel mocks base method
|
||||
// ImageFsInfoLabel mocks base method.
|
||||
func (m *MockImageFsInfoProvider) ImageFsInfoLabel() (string, error) {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "ImageFsInfoLabel")
|
||||
@@ -262,7 +263,7 @@ func (m *MockImageFsInfoProvider) ImageFsInfoLabel() (string, error) {
|
||||
return ret0, ret1
|
||||
}
|
||||
|
||||
// ImageFsInfoLabel indicates an expected call of ImageFsInfoLabel
|
||||
// ImageFsInfoLabel indicates an expected call of ImageFsInfoLabel.
|
||||
func (mr *MockImageFsInfoProviderMockRecorder) ImageFsInfoLabel() *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ImageFsInfoLabel", reflect.TypeOf((*MockImageFsInfoProvider)(nil).ImageFsInfoLabel))
|
||||
|
Reference in New Issue
Block a user