...

Source file src/k8s.io/kubernetes/pkg/kubelet/server/stats/testing/mock_summary_provider.go

Documentation: k8s.io/kubernetes/pkg/kubelet/server/stats/testing

     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  // Package testing is a generated GoMock package.
    21  package testing
    22  
    23  import (
    24  	context "context"
    25  	reflect "reflect"
    26  
    27  	gomock "github.com/golang/mock/gomock"
    28  	v1alpha1 "k8s.io/kubelet/pkg/apis/stats/v1alpha1"
    29  )
    30  
    31  // MockSummaryProvider is a mock of SummaryProvider interface.
    32  type MockSummaryProvider struct {
    33  	ctrl     *gomock.Controller
    34  	recorder *MockSummaryProviderMockRecorder
    35  }
    36  
    37  // MockSummaryProviderMockRecorder is the mock recorder for MockSummaryProvider.
    38  type MockSummaryProviderMockRecorder struct {
    39  	mock *MockSummaryProvider
    40  }
    41  
    42  // NewMockSummaryProvider creates a new mock instance.
    43  func NewMockSummaryProvider(ctrl *gomock.Controller) *MockSummaryProvider {
    44  	mock := &MockSummaryProvider{ctrl: ctrl}
    45  	mock.recorder = &MockSummaryProviderMockRecorder{mock}
    46  	return mock
    47  }
    48  
    49  // EXPECT returns an object that allows the caller to indicate expected use.
    50  func (m *MockSummaryProvider) EXPECT() *MockSummaryProviderMockRecorder {
    51  	return m.recorder
    52  }
    53  
    54  // Get mocks base method.
    55  func (m *MockSummaryProvider) Get(ctx context.Context, updateStats bool) (*v1alpha1.Summary, error) {
    56  	m.ctrl.T.Helper()
    57  	ret := m.ctrl.Call(m, "Get", ctx, updateStats)
    58  	ret0, _ := ret[0].(*v1alpha1.Summary)
    59  	ret1, _ := ret[1].(error)
    60  	return ret0, ret1
    61  }
    62  
    63  // Get indicates an expected call of Get.
    64  func (mr *MockSummaryProviderMockRecorder) Get(ctx, updateStats interface{}) *gomock.Call {
    65  	mr.mock.ctrl.T.Helper()
    66  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockSummaryProvider)(nil).Get), ctx, updateStats)
    67  }
    68  
    69  // GetCPUAndMemoryStats mocks base method.
    70  func (m *MockSummaryProvider) GetCPUAndMemoryStats(ctx context.Context) (*v1alpha1.Summary, error) {
    71  	m.ctrl.T.Helper()
    72  	ret := m.ctrl.Call(m, "GetCPUAndMemoryStats", ctx)
    73  	ret0, _ := ret[0].(*v1alpha1.Summary)
    74  	ret1, _ := ret[1].(error)
    75  	return ret0, ret1
    76  }
    77  
    78  // GetCPUAndMemoryStats indicates an expected call of GetCPUAndMemoryStats.
    79  func (mr *MockSummaryProviderMockRecorder) GetCPUAndMemoryStats(ctx interface{}) *gomock.Call {
    80  	mr.mock.ctrl.T.Helper()
    81  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCPUAndMemoryStats", reflect.TypeOf((*MockSummaryProvider)(nil).GetCPUAndMemoryStats), ctx)
    82  }
    83  

View as plain text