github.com/anycable/anycable-go@v1.5.1/mocks/Instrumenter.go (about)

     1  // Code generated by mockery v2.20.0. DO NOT EDIT.
     2  
     3  package mocks
     4  
     5  import mock "github.com/stretchr/testify/mock"
     6  
     7  // Instrumenter is an autogenerated mock type for the Instrumenter type
     8  type Instrumenter struct {
     9  	mock.Mock
    10  }
    11  
    12  // CounterAdd provides a mock function with given fields: name, val
    13  func (_m *Instrumenter) CounterAdd(name string, val uint64) {
    14  	_m.Called(name, val)
    15  }
    16  
    17  // CounterIncrement provides a mock function with given fields: name
    18  func (_m *Instrumenter) CounterIncrement(name string) {
    19  	_m.Called(name)
    20  }
    21  
    22  // GaugeDecrement provides a mock function with given fields: name
    23  func (_m *Instrumenter) GaugeDecrement(name string) {
    24  	_m.Called(name)
    25  }
    26  
    27  // GaugeIncrement provides a mock function with given fields: name
    28  func (_m *Instrumenter) GaugeIncrement(name string) {
    29  	_m.Called(name)
    30  }
    31  
    32  // GaugeSet provides a mock function with given fields: name, val
    33  func (_m *Instrumenter) GaugeSet(name string, val uint64) {
    34  	_m.Called(name, val)
    35  }
    36  
    37  // RegisterCounter provides a mock function with given fields: name, desc
    38  func (_m *Instrumenter) RegisterCounter(name string, desc string) {
    39  	_m.Called(name, desc)
    40  }
    41  
    42  // RegisterGauge provides a mock function with given fields: name, desc
    43  func (_m *Instrumenter) RegisterGauge(name string, desc string) {
    44  	_m.Called(name, desc)
    45  }
    46  
    47  type mockConstructorTestingTNewInstrumenter interface {
    48  	mock.TestingT
    49  	Cleanup(func())
    50  }
    51  
    52  // NewInstrumenter creates a new instance of Instrumenter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    53  func NewInstrumenter(t mockConstructorTestingTNewInstrumenter) *Instrumenter {
    54  	mock := &Instrumenter{}
    55  	mock.Mock.Test(t)
    56  
    57  	t.Cleanup(func() { mock.AssertExpectations(t) })
    58  
    59  	return mock
    60  }