github.com/koko1123/flow-go-1@v0.29.6/module/mock/network_inbound_queue_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  // NetworkInboundQueueMetrics is an autogenerated mock type for the NetworkInboundQueueMetrics type
    12  type NetworkInboundQueueMetrics struct {
    13  	mock.Mock
    14  }
    15  
    16  // MessageAdded provides a mock function with given fields: priority
    17  func (_m *NetworkInboundQueueMetrics) MessageAdded(priority int) {
    18  	_m.Called(priority)
    19  }
    20  
    21  // MessageRemoved provides a mock function with given fields: priority
    22  func (_m *NetworkInboundQueueMetrics) MessageRemoved(priority int) {
    23  	_m.Called(priority)
    24  }
    25  
    26  // QueueDuration provides a mock function with given fields: duration, priority
    27  func (_m *NetworkInboundQueueMetrics) QueueDuration(duration time.Duration, priority int) {
    28  	_m.Called(duration, priority)
    29  }
    30  
    31  type mockConstructorTestingTNewNetworkInboundQueueMetrics interface {
    32  	mock.TestingT
    33  	Cleanup(func())
    34  }
    35  
    36  // NewNetworkInboundQueueMetrics creates a new instance of NetworkInboundQueueMetrics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    37  func NewNetworkInboundQueueMetrics(t mockConstructorTestingTNewNetworkInboundQueueMetrics) *NetworkInboundQueueMetrics {
    38  	mock := &NetworkInboundQueueMetrics{}
    39  	mock.Mock.Test(t)
    40  
    41  	t.Cleanup(func() { mock.AssertExpectations(t) })
    42  
    43  	return mock
    44  }