k8s.io/kubernetes@v1.31.0-alpha.0.0.20240520171757-56147500dadc/pkg/kubelet/server/stats/testing/mock_summary_provider.go (about)

     1  /*
     2  Copyright The Kubernetes Authors.
     3  
     4  Licensed under the Apache License, Version 2.0 (the "License");
     5  you may not use this file except in compliance with the License.
     6  You may obtain a copy of the License at
     7  
     8      http://www.apache.org/licenses/LICENSE-2.0
     9  
    10  Unless required by applicable law or agreed to in writing, software
    11  distributed under the License is distributed on an "AS IS" BASIS,
    12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13  See the License for the specific language governing permissions and
    14  limitations under the License.
    15  */
    16  
    17  // Code generated by MockGen. DO NOT EDIT.
    18  // Source: summary.go
    19  //
    20  // Generated by this command:
    21  //
    22  //	mockgen -source=summary.go -destination=testing/mock_summary_provider.go -package=testing SummaryProvider
    23  //
    24  
    25  // Package testing is a generated GoMock package.
    26  package testing
    27  
    28  import (
    29  	context "context"
    30  	reflect "reflect"
    31  
    32  	gomock "go.uber.org/mock/gomock"
    33  	v1alpha1 "k8s.io/kubelet/pkg/apis/stats/v1alpha1"
    34  )
    35  
    36  // MockSummaryProvider is a mock of SummaryProvider interface.
    37  type MockSummaryProvider struct {
    38  	ctrl     *gomock.Controller
    39  	recorder *MockSummaryProviderMockRecorder
    40  }
    41  
    42  // MockSummaryProviderMockRecorder is the mock recorder for MockSummaryProvider.
    43  type MockSummaryProviderMockRecorder struct {
    44  	mock *MockSummaryProvider
    45  }
    46  
    47  // NewMockSummaryProvider creates a new mock instance.
    48  func NewMockSummaryProvider(ctrl *gomock.Controller) *MockSummaryProvider {
    49  	mock := &MockSummaryProvider{ctrl: ctrl}
    50  	mock.recorder = &MockSummaryProviderMockRecorder{mock}
    51  	return mock
    52  }
    53  
    54  // EXPECT returns an object that allows the caller to indicate expected use.
    55  func (m *MockSummaryProvider) EXPECT() *MockSummaryProviderMockRecorder {
    56  	return m.recorder
    57  }
    58  
    59  // Get mocks base method.
    60  func (m *MockSummaryProvider) Get(ctx context.Context, updateStats bool) (*v1alpha1.Summary, error) {
    61  	m.ctrl.T.Helper()
    62  	ret := m.ctrl.Call(m, "Get", ctx, updateStats)
    63  	ret0, _ := ret[0].(*v1alpha1.Summary)
    64  	ret1, _ := ret[1].(error)
    65  	return ret0, ret1
    66  }
    67  
    68  // Get indicates an expected call of Get.
    69  func (mr *MockSummaryProviderMockRecorder) Get(ctx, updateStats any) *gomock.Call {
    70  	mr.mock.ctrl.T.Helper()
    71  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockSummaryProvider)(nil).Get), ctx, updateStats)
    72  }
    73  
    74  // GetCPUAndMemoryStats mocks base method.
    75  func (m *MockSummaryProvider) GetCPUAndMemoryStats(ctx context.Context) (*v1alpha1.Summary, error) {
    76  	m.ctrl.T.Helper()
    77  	ret := m.ctrl.Call(m, "GetCPUAndMemoryStats", ctx)
    78  	ret0, _ := ret[0].(*v1alpha1.Summary)
    79  	ret1, _ := ret[1].(error)
    80  	return ret0, ret1
    81  }
    82  
    83  // GetCPUAndMemoryStats indicates an expected call of GetCPUAndMemoryStats.
    84  func (mr *MockSummaryProviderMockRecorder) GetCPUAndMemoryStats(ctx any) *gomock.Call {
    85  	mr.mock.ctrl.T.Helper()
    86  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCPUAndMemoryStats", reflect.TypeOf((*MockSummaryProvider)(nil).GetCPUAndMemoryStats), ctx)
    87  }