github.com/koko1123/flow-go-1@v0.29.6/module/mock/engine_metrics.go (about)

     1  // Code generated by mockery v2.13.1. 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  // MessageHandled provides a mock function with given fields: engine, messages
    13  func (_m *EngineMetrics) MessageHandled(engine string, messages string) {
    14  	_m.Called(engine, messages)
    15  }
    16  
    17  // MessageReceived provides a mock function with given fields: engine, message
    18  func (_m *EngineMetrics) MessageReceived(engine string, message string) {
    19  	_m.Called(engine, message)
    20  }
    21  
    22  // MessageSent provides a mock function with given fields: engine, message
    23  func (_m *EngineMetrics) MessageSent(engine string, message string) {
    24  	_m.Called(engine, message)
    25  }
    26  
    27  type mockConstructorTestingTNewEngineMetrics interface {
    28  	mock.TestingT
    29  	Cleanup(func())
    30  }
    31  
    32  // 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.
    33  func NewEngineMetrics(t mockConstructorTestingTNewEngineMetrics) *EngineMetrics {
    34  	mock := &EngineMetrics{}
    35  	mock.Mock.Test(t)
    36  
    37  	t.Cleanup(func() { mock.AssertExpectations(t) })
    38  
    39  	return mock
    40  }