github.com/niedbalski/juju@v0.0.0-20190215020005-8ff100488e47/apiserver/observer/metricobserver/mocks/metrics_mock.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/prometheus/client_golang/prometheus (interfaces: Counter,Summary)
     3  
     4  // Package mocks is a generated GoMock package.
     5  package mocks
     6  
     7  import (
     8  	gomock "github.com/golang/mock/gomock"
     9  	prometheus "github.com/prometheus/client_golang/prometheus"
    10  	go0 "github.com/prometheus/client_model/go"
    11  	reflect "reflect"
    12  )
    13  
    14  // MockCounter is a mock of Counter interface
    15  type MockCounter struct {
    16  	ctrl     *gomock.Controller
    17  	recorder *MockCounterMockRecorder
    18  }
    19  
    20  // MockCounterMockRecorder is the mock recorder for MockCounter
    21  type MockCounterMockRecorder struct {
    22  	mock *MockCounter
    23  }
    24  
    25  // NewMockCounter creates a new mock instance
    26  func NewMockCounter(ctrl *gomock.Controller) *MockCounter {
    27  	mock := &MockCounter{ctrl: ctrl}
    28  	mock.recorder = &MockCounterMockRecorder{mock}
    29  	return mock
    30  }
    31  
    32  // EXPECT returns an object that allows the caller to indicate expected use
    33  func (m *MockCounter) EXPECT() *MockCounterMockRecorder {
    34  	return m.recorder
    35  }
    36  
    37  // Add mocks base method
    38  func (m *MockCounter) Add(arg0 float64) {
    39  	m.ctrl.Call(m, "Add", arg0)
    40  }
    41  
    42  // Add indicates an expected call of Add
    43  func (mr *MockCounterMockRecorder) Add(arg0 interface{}) *gomock.Call {
    44  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Add", reflect.TypeOf((*MockCounter)(nil).Add), arg0)
    45  }
    46  
    47  // Collect mocks base method
    48  func (m *MockCounter) Collect(arg0 chan<- prometheus.Metric) {
    49  	m.ctrl.Call(m, "Collect", arg0)
    50  }
    51  
    52  // Collect indicates an expected call of Collect
    53  func (mr *MockCounterMockRecorder) Collect(arg0 interface{}) *gomock.Call {
    54  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Collect", reflect.TypeOf((*MockCounter)(nil).Collect), arg0)
    55  }
    56  
    57  // Desc mocks base method
    58  func (m *MockCounter) Desc() *prometheus.Desc {
    59  	ret := m.ctrl.Call(m, "Desc")
    60  	ret0, _ := ret[0].(*prometheus.Desc)
    61  	return ret0
    62  }
    63  
    64  // Desc indicates an expected call of Desc
    65  func (mr *MockCounterMockRecorder) Desc() *gomock.Call {
    66  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Desc", reflect.TypeOf((*MockCounter)(nil).Desc))
    67  }
    68  
    69  // Describe mocks base method
    70  func (m *MockCounter) Describe(arg0 chan<- *prometheus.Desc) {
    71  	m.ctrl.Call(m, "Describe", arg0)
    72  }
    73  
    74  // Describe indicates an expected call of Describe
    75  func (mr *MockCounterMockRecorder) Describe(arg0 interface{}) *gomock.Call {
    76  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Describe", reflect.TypeOf((*MockCounter)(nil).Describe), arg0)
    77  }
    78  
    79  // Inc mocks base method
    80  func (m *MockCounter) Inc() {
    81  	m.ctrl.Call(m, "Inc")
    82  }
    83  
    84  // Inc indicates an expected call of Inc
    85  func (mr *MockCounterMockRecorder) Inc() *gomock.Call {
    86  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Inc", reflect.TypeOf((*MockCounter)(nil).Inc))
    87  }
    88  
    89  // Write mocks base method
    90  func (m *MockCounter) Write(arg0 *go0.Metric) error {
    91  	ret := m.ctrl.Call(m, "Write", arg0)
    92  	ret0, _ := ret[0].(error)
    93  	return ret0
    94  }
    95  
    96  // Write indicates an expected call of Write
    97  func (mr *MockCounterMockRecorder) Write(arg0 interface{}) *gomock.Call {
    98  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Write", reflect.TypeOf((*MockCounter)(nil).Write), arg0)
    99  }
   100  
   101  // MockSummary is a mock of Summary interface
   102  type MockSummary struct {
   103  	ctrl     *gomock.Controller
   104  	recorder *MockSummaryMockRecorder
   105  }
   106  
   107  // MockSummaryMockRecorder is the mock recorder for MockSummary
   108  type MockSummaryMockRecorder struct {
   109  	mock *MockSummary
   110  }
   111  
   112  // NewMockSummary creates a new mock instance
   113  func NewMockSummary(ctrl *gomock.Controller) *MockSummary {
   114  	mock := &MockSummary{ctrl: ctrl}
   115  	mock.recorder = &MockSummaryMockRecorder{mock}
   116  	return mock
   117  }
   118  
   119  // EXPECT returns an object that allows the caller to indicate expected use
   120  func (m *MockSummary) EXPECT() *MockSummaryMockRecorder {
   121  	return m.recorder
   122  }
   123  
   124  // Collect mocks base method
   125  func (m *MockSummary) Collect(arg0 chan<- prometheus.Metric) {
   126  	m.ctrl.Call(m, "Collect", arg0)
   127  }
   128  
   129  // Collect indicates an expected call of Collect
   130  func (mr *MockSummaryMockRecorder) Collect(arg0 interface{}) *gomock.Call {
   131  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Collect", reflect.TypeOf((*MockSummary)(nil).Collect), arg0)
   132  }
   133  
   134  // Desc mocks base method
   135  func (m *MockSummary) Desc() *prometheus.Desc {
   136  	ret := m.ctrl.Call(m, "Desc")
   137  	ret0, _ := ret[0].(*prometheus.Desc)
   138  	return ret0
   139  }
   140  
   141  // Desc indicates an expected call of Desc
   142  func (mr *MockSummaryMockRecorder) Desc() *gomock.Call {
   143  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Desc", reflect.TypeOf((*MockSummary)(nil).Desc))
   144  }
   145  
   146  // Describe mocks base method
   147  func (m *MockSummary) Describe(arg0 chan<- *prometheus.Desc) {
   148  	m.ctrl.Call(m, "Describe", arg0)
   149  }
   150  
   151  // Describe indicates an expected call of Describe
   152  func (mr *MockSummaryMockRecorder) Describe(arg0 interface{}) *gomock.Call {
   153  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Describe", reflect.TypeOf((*MockSummary)(nil).Describe), arg0)
   154  }
   155  
   156  // Observe mocks base method
   157  func (m *MockSummary) Observe(arg0 float64) {
   158  	m.ctrl.Call(m, "Observe", arg0)
   159  }
   160  
   161  // Observe indicates an expected call of Observe
   162  func (mr *MockSummaryMockRecorder) Observe(arg0 interface{}) *gomock.Call {
   163  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Observe", reflect.TypeOf((*MockSummary)(nil).Observe), arg0)
   164  }
   165  
   166  // Write mocks base method
   167  func (m *MockSummary) Write(arg0 *go0.Metric) error {
   168  	ret := m.ctrl.Call(m, "Write", arg0)
   169  	ret0, _ := ret[0].(error)
   170  	return ret0
   171  }
   172  
   173  // Write indicates an expected call of Write
   174  func (mr *MockSummaryMockRecorder) Write(arg0 interface{}) *gomock.Call {
   175  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Write", reflect.TypeOf((*MockSummary)(nil).Write), arg0)
   176  }