dubbo.apache.org/dubbo-go/v3@v3.1.1/cluster/metrics/mock_metrics.go (about)

     1  /*
     2   * Licensed to the Apache Software Foundation (ASF) under one or more
     3   * contributor license agreements.  See the NOTICE file distributed with
     4   * this work for additional information regarding copyright ownership.
     5   * The ASF licenses this file to You under the Apache License, Version 2.0
     6   * (the "License"); you may not use this file except in compliance with
     7   * the License.  You may obtain a copy of the License at
     8   *
     9   *     http://www.apache.org/licenses/LICENSE-2.0
    10   *
    11   * Unless required by applicable law or agreed to in writing, software
    12   * distributed under the License is distributed on an "AS IS" BASIS,
    13   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    14   * See the License for the specific language governing permissions and
    15   * limitations under the License.
    16   */
    17  
    18  // Code generated by MockGen. DO NOT EDIT.
    19  // Source: metrics.go
    20  
    21  // Package mock_metrics is a generated GoMock package.
    22  package metrics
    23  
    24  import (
    25  	reflect "reflect"
    26  )
    27  
    28  import (
    29  	gomock "github.com/golang/mock/gomock"
    30  )
    31  
    32  import (
    33  	common "dubbo.apache.org/dubbo-go/v3/common"
    34  )
    35  
    36  // MockMetrics is a mock of Metrics interface.
    37  type MockMetrics struct {
    38  	ctrl     *gomock.Controller
    39  	recorder *MockMetricsMockRecorder
    40  }
    41  
    42  // MockMetricsMockRecorder is the mock recorder for MockMetrics.
    43  type MockMetricsMockRecorder struct {
    44  	mock *MockMetrics
    45  }
    46  
    47  // NewMockMetrics creates a new mock instance.
    48  func NewMockMetrics(ctrl *gomock.Controller) *MockMetrics {
    49  	mock := &MockMetrics{ctrl: ctrl}
    50  	mock.recorder = &MockMetricsMockRecorder{mock}
    51  	return mock
    52  }
    53  
    54  // EXPECT returns an object that allows the caller to indicate expected use.
    55  func (m *MockMetrics) EXPECT() *MockMetricsMockRecorder {
    56  	return m.recorder
    57  }
    58  
    59  // GetInstanceMetrics mocks base method.
    60  func (m *MockMetrics) GetInstanceMetrics(url *common.URL, key string) (interface{}, error) {
    61  	m.ctrl.T.Helper()
    62  	ret := m.ctrl.Call(m, "GetInstanceMetrics", url, key)
    63  	ret0, _ := ret[0].(interface{})
    64  	ret1, _ := ret[1].(error)
    65  	return ret0, ret1
    66  }
    67  
    68  // GetInstanceMetrics indicates an expected call of GetInstanceMetrics.
    69  func (mr *MockMetricsMockRecorder) GetInstanceMetrics(url, key interface{}) *gomock.Call {
    70  	mr.mock.ctrl.T.Helper()
    71  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetInstanceMetrics", reflect.TypeOf((*MockMetrics)(nil).GetInstanceMetrics), url, key)
    72  }
    73  
    74  // GetInvokerMetrics mocks base method.
    75  func (m *MockMetrics) GetInvokerMetrics(url *common.URL, key string) (interface{}, error) {
    76  	m.ctrl.T.Helper()
    77  	ret := m.ctrl.Call(m, "GetInvokerMetrics", url, key)
    78  	ret0, _ := ret[0].(interface{})
    79  	ret1, _ := ret[1].(error)
    80  	return ret0, ret1
    81  }
    82  
    83  // GetInvokerMetrics indicates an expected call of GetInvokerMetrics.
    84  func (mr *MockMetricsMockRecorder) GetInvokerMetrics(url, key interface{}) *gomock.Call {
    85  	mr.mock.ctrl.T.Helper()
    86  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetInvokerMetrics", reflect.TypeOf((*MockMetrics)(nil).GetInvokerMetrics), url, key)
    87  }
    88  
    89  // GetMethodMetrics mocks base method.
    90  func (m *MockMetrics) GetMethodMetrics(url *common.URL, methodName, key string) (interface{}, error) {
    91  	m.ctrl.T.Helper()
    92  	ret := m.ctrl.Call(m, "GetMethodMetrics", url, methodName, key)
    93  	ret0, _ := ret[0].(interface{})
    94  	ret1, _ := ret[1].(error)
    95  	return ret0, ret1
    96  }
    97  
    98  // GetMethodMetrics indicates an expected call of GetMethodMetrics.
    99  func (mr *MockMetricsMockRecorder) GetMethodMetrics(url, methodName, key interface{}) *gomock.Call {
   100  	mr.mock.ctrl.T.Helper()
   101  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMethodMetrics", reflect.TypeOf((*MockMetrics)(nil).GetMethodMetrics), url, methodName, key)
   102  }
   103  
   104  // SetInstanceMetrics mocks base method.
   105  func (m *MockMetrics) SetInstanceMetrics(url *common.URL, key string, value interface{}) error {
   106  	m.ctrl.T.Helper()
   107  	ret := m.ctrl.Call(m, "SetInstanceMetrics", url, key, value)
   108  	ret0, _ := ret[0].(error)
   109  	return ret0
   110  }
   111  
   112  // SetInstanceMetrics indicates an expected call of SetInstanceMetrics.
   113  func (mr *MockMetricsMockRecorder) SetInstanceMetrics(url, key, value interface{}) *gomock.Call {
   114  	mr.mock.ctrl.T.Helper()
   115  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetInstanceMetrics", reflect.TypeOf((*MockMetrics)(nil).SetInstanceMetrics), url, key, value)
   116  }
   117  
   118  // SetInvokerMetrics mocks base method.
   119  func (m *MockMetrics) SetInvokerMetrics(url *common.URL, key string, value interface{}) error {
   120  	m.ctrl.T.Helper()
   121  	ret := m.ctrl.Call(m, "SetInvokerMetrics", url, key, value)
   122  	ret0, _ := ret[0].(error)
   123  	return ret0
   124  }
   125  
   126  // SetInvokerMetrics indicates an expected call of SetInvokerMetrics.
   127  func (mr *MockMetricsMockRecorder) SetInvokerMetrics(url, key, value interface{}) *gomock.Call {
   128  	mr.mock.ctrl.T.Helper()
   129  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetInvokerMetrics", reflect.TypeOf((*MockMetrics)(nil).SetInvokerMetrics), url, key, value)
   130  }
   131  
   132  // SetMethodMetrics mocks base method.
   133  func (m *MockMetrics) SetMethodMetrics(url *common.URL, methodName, key string, value interface{}) error {
   134  	m.ctrl.T.Helper()
   135  	ret := m.ctrl.Call(m, "SetMethodMetrics", url, methodName, key, value)
   136  	ret0, _ := ret[0].(error)
   137  	return ret0
   138  }
   139  
   140  // SetMethodMetrics indicates an expected call of SetMethodMetrics.
   141  func (mr *MockMetricsMockRecorder) SetMethodMetrics(url, methodName, key, value interface{}) *gomock.Call {
   142  	mr.mock.ctrl.T.Helper()
   143  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetMethodMetrics", reflect.TypeOf((*MockMetrics)(nil).SetMethodMetrics), url, methodName, key, value)
   144  }