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

     1  // Code generated by mockery v2.13.1. DO NOT EDIT.
     2  
     3  package mock
     4  
     5  import (
     6  	mock "github.com/stretchr/testify/mock"
     7  
     8  	time "time"
     9  )
    10  
    11  // NetworkCoreMetrics is an autogenerated mock type for the NetworkCoreMetrics type
    12  type NetworkCoreMetrics struct {
    13  	mock.Mock
    14  }
    15  
    16  // DuplicateInboundMessagesDropped provides a mock function with given fields: topic, protocol, messageType
    17  func (_m *NetworkCoreMetrics) DuplicateInboundMessagesDropped(topic string, protocol string, messageType string) {
    18  	_m.Called(topic, protocol, messageType)
    19  }
    20  
    21  // InboundMessageReceived provides a mock function with given fields: sizeBytes, topic, protocol, messageType
    22  func (_m *NetworkCoreMetrics) InboundMessageReceived(sizeBytes int, topic string, protocol string, messageType string) {
    23  	_m.Called(sizeBytes, topic, protocol, messageType)
    24  }
    25  
    26  // MessageAdded provides a mock function with given fields: priority
    27  func (_m *NetworkCoreMetrics) MessageAdded(priority int) {
    28  	_m.Called(priority)
    29  }
    30  
    31  // MessageProcessingFinished provides a mock function with given fields: topic, duration
    32  func (_m *NetworkCoreMetrics) MessageProcessingFinished(topic string, duration time.Duration) {
    33  	_m.Called(topic, duration)
    34  }
    35  
    36  // MessageProcessingStarted provides a mock function with given fields: topic
    37  func (_m *NetworkCoreMetrics) MessageProcessingStarted(topic string) {
    38  	_m.Called(topic)
    39  }
    40  
    41  // MessageRemoved provides a mock function with given fields: priority
    42  func (_m *NetworkCoreMetrics) MessageRemoved(priority int) {
    43  	_m.Called(priority)
    44  }
    45  
    46  // OutboundMessageSent provides a mock function with given fields: sizeBytes, topic, protocol, messageType
    47  func (_m *NetworkCoreMetrics) OutboundMessageSent(sizeBytes int, topic string, protocol string, messageType string) {
    48  	_m.Called(sizeBytes, topic, protocol, messageType)
    49  }
    50  
    51  // QueueDuration provides a mock function with given fields: duration, priority
    52  func (_m *NetworkCoreMetrics) QueueDuration(duration time.Duration, priority int) {
    53  	_m.Called(duration, priority)
    54  }
    55  
    56  // UnicastMessageSendingCompleted provides a mock function with given fields: topic
    57  func (_m *NetworkCoreMetrics) UnicastMessageSendingCompleted(topic string) {
    58  	_m.Called(topic)
    59  }
    60  
    61  // UnicastMessageSendingStarted provides a mock function with given fields: topic
    62  func (_m *NetworkCoreMetrics) UnicastMessageSendingStarted(topic string) {
    63  	_m.Called(topic)
    64  }
    65  
    66  type mockConstructorTestingTNewNetworkCoreMetrics interface {
    67  	mock.TestingT
    68  	Cleanup(func())
    69  }
    70  
    71  // NewNetworkCoreMetrics creates a new instance of NetworkCoreMetrics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    72  func NewNetworkCoreMetrics(t mockConstructorTestingTNewNetworkCoreMetrics) *NetworkCoreMetrics {
    73  	mock := &NetworkCoreMetrics{}
    74  	mock.Mock.Test(t)
    75  
    76  	t.Cleanup(func() { mock.AssertExpectations(t) })
    77  
    78  	return mock
    79  }