github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/module/mock/engine_metrics.go (about)

     1  // Code generated by mockery v2.21.4. DO NOT EDIT.
     2  
     3  package mock
     4  
     5  import mock "github.com/stretchr/testify/mock"
     6  
     7  // EngineMetrics is an autogenerated mock type for the EngineMetrics type
     8  type EngineMetrics struct {
     9  	mock.Mock
    10  }
    11  
    12  // InboundMessageDropped provides a mock function with given fields: engine, messages
    13  func (_m *EngineMetrics) InboundMessageDropped(engine string, messages string) {
    14  	_m.Called(engine, messages)
    15  }
    16  
    17  // MessageHandled provides a mock function with given fields: engine, messages
    18  func (_m *EngineMetrics) MessageHandled(engine string, messages string) {
    19  	_m.Called(engine, messages)
    20  }
    21  
    22  // MessageReceived provides a mock function with given fields: engine, message
    23  func (_m *EngineMetrics) MessageReceived(engine string, message string) {
    24  	_m.Called(engine, message)
    25  }
    26  
    27  // MessageSent provides a mock function with given fields: engine, message
    28  func (_m *EngineMetrics) MessageSent(engine string, message string) {
    29  	_m.Called(engine, message)
    30  }
    31  
    32  // OutboundMessageDropped provides a mock function with given fields: engine, messages
    33  func (_m *EngineMetrics) OutboundMessageDropped(engine string, messages string) {
    34  	_m.Called(engine, messages)
    35  }
    36  
    37  type mockConstructorTestingTNewEngineMetrics interface {
    38  	mock.TestingT
    39  	Cleanup(func())
    40  }
    41  
    42  // NewEngineMetrics creates a new instance of EngineMetrics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    43  func NewEngineMetrics(t mockConstructorTestingTNewEngineMetrics) *EngineMetrics {
    44  	mock := &EngineMetrics{}
    45  	mock.Mock.Test(t)
    46  
    47  	t.Cleanup(func() { mock.AssertExpectations(t) })
    48  
    49  	return mock
    50  }