github.com/anjalikarhana/fabric@v2.1.1+incompatible/orderer/common/cluster/mocks/metrics_provider.go (about)

     1  // Code generated by mockery v1.0.0. DO NOT EDIT.
     2  
     3  package mocks
     4  
     5  import (
     6  	metrics "github.com/hyperledger/fabric/common/metrics"
     7  	mock "github.com/stretchr/testify/mock"
     8  )
     9  
    10  // MetricsProvider is an autogenerated mock type for the MetricsProvider type
    11  type MetricsProvider struct {
    12  	mock.Mock
    13  }
    14  
    15  // NewCounter provides a mock function with given fields: opts
    16  func (_m *MetricsProvider) NewCounter(opts metrics.CounterOpts) metrics.Counter {
    17  	ret := _m.Called(opts)
    18  
    19  	var r0 metrics.Counter
    20  	if rf, ok := ret.Get(0).(func(metrics.CounterOpts) metrics.Counter); ok {
    21  		r0 = rf(opts)
    22  	} else {
    23  		if ret.Get(0) != nil {
    24  			r0 = ret.Get(0).(metrics.Counter)
    25  		}
    26  	}
    27  
    28  	return r0
    29  }
    30  
    31  // NewGauge provides a mock function with given fields: opts
    32  func (_m *MetricsProvider) NewGauge(opts metrics.GaugeOpts) metrics.Gauge {
    33  	ret := _m.Called(opts)
    34  
    35  	var r0 metrics.Gauge
    36  	if rf, ok := ret.Get(0).(func(metrics.GaugeOpts) metrics.Gauge); ok {
    37  		r0 = rf(opts)
    38  	} else {
    39  		if ret.Get(0) != nil {
    40  			r0 = ret.Get(0).(metrics.Gauge)
    41  		}
    42  	}
    43  
    44  	return r0
    45  }
    46  
    47  // NewHistogram provides a mock function with given fields: opts
    48  func (_m *MetricsProvider) NewHistogram(opts metrics.HistogramOpts) metrics.Histogram {
    49  	ret := _m.Called(opts)
    50  
    51  	var r0 metrics.Histogram
    52  	if rf, ok := ret.Get(0).(func(metrics.HistogramOpts) metrics.Histogram); ok {
    53  		r0 = rf(opts)
    54  	} else {
    55  		if ret.Get(0) != nil {
    56  			r0 = ret.Get(0).(metrics.Histogram)
    57  		}
    58  	}
    59  
    60  	return r0
    61  }