github.com/koko1123/flow-go-1@v0.29.6/module/mock/dht_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  // DHTMetrics is an autogenerated mock type for the DHTMetrics type
     8  type DHTMetrics struct {
     9  	mock.Mock
    10  }
    11  
    12  // RoutingTablePeerAdded provides a mock function with given fields:
    13  func (_m *DHTMetrics) RoutingTablePeerAdded() {
    14  	_m.Called()
    15  }
    16  
    17  // RoutingTablePeerRemoved provides a mock function with given fields:
    18  func (_m *DHTMetrics) RoutingTablePeerRemoved() {
    19  	_m.Called()
    20  }
    21  
    22  type mockConstructorTestingTNewDHTMetrics interface {
    23  	mock.TestingT
    24  	Cleanup(func())
    25  }
    26  
    27  // NewDHTMetrics creates a new instance of DHTMetrics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    28  func NewDHTMetrics(t mockConstructorTestingTNewDHTMetrics) *DHTMetrics {
    29  	mock := &DHTMetrics{}
    30  	mock.Mock.Test(t)
    31  
    32  	t.Cleanup(func() { mock.AssertExpectations(t) })
    33  
    34  	return mock
    35  }