github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/module/mock/bitswap_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  // BitswapMetrics is an autogenerated mock type for the BitswapMetrics type
     8  type BitswapMetrics struct {
     9  	mock.Mock
    10  }
    11  
    12  // BlobsReceived provides a mock function with given fields: prefix, n
    13  func (_m *BitswapMetrics) BlobsReceived(prefix string, n uint64) {
    14  	_m.Called(prefix, n)
    15  }
    16  
    17  // BlobsSent provides a mock function with given fields: prefix, n
    18  func (_m *BitswapMetrics) BlobsSent(prefix string, n uint64) {
    19  	_m.Called(prefix, n)
    20  }
    21  
    22  // DataReceived provides a mock function with given fields: prefix, n
    23  func (_m *BitswapMetrics) DataReceived(prefix string, n uint64) {
    24  	_m.Called(prefix, n)
    25  }
    26  
    27  // DataSent provides a mock function with given fields: prefix, n
    28  func (_m *BitswapMetrics) DataSent(prefix string, n uint64) {
    29  	_m.Called(prefix, n)
    30  }
    31  
    32  // DupBlobsReceived provides a mock function with given fields: prefix, n
    33  func (_m *BitswapMetrics) DupBlobsReceived(prefix string, n uint64) {
    34  	_m.Called(prefix, n)
    35  }
    36  
    37  // DupDataReceived provides a mock function with given fields: prefix, n
    38  func (_m *BitswapMetrics) DupDataReceived(prefix string, n uint64) {
    39  	_m.Called(prefix, n)
    40  }
    41  
    42  // MessagesReceived provides a mock function with given fields: prefix, n
    43  func (_m *BitswapMetrics) MessagesReceived(prefix string, n uint64) {
    44  	_m.Called(prefix, n)
    45  }
    46  
    47  // Peers provides a mock function with given fields: prefix, n
    48  func (_m *BitswapMetrics) Peers(prefix string, n int) {
    49  	_m.Called(prefix, n)
    50  }
    51  
    52  // Wantlist provides a mock function with given fields: prefix, n
    53  func (_m *BitswapMetrics) Wantlist(prefix string, n int) {
    54  	_m.Called(prefix, n)
    55  }
    56  
    57  type mockConstructorTestingTNewBitswapMetrics interface {
    58  	mock.TestingT
    59  	Cleanup(func())
    60  }
    61  
    62  // NewBitswapMetrics creates a new instance of BitswapMetrics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    63  func NewBitswapMetrics(t mockConstructorTestingTNewBitswapMetrics) *BitswapMetrics {
    64  	mock := &BitswapMetrics{}
    65  	mock.Mock.Test(t)
    66  
    67  	t.Cleanup(func() { mock.AssertExpectations(t) })
    68  
    69  	return mock
    70  }