github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/module/mock/gossip_sub_rpc_validation_inspector_metrics.go (about)

     1  // Code generated by mockery v2.21.4. DO NOT EDIT.
     2  
     3  package mock
     4  
     5  import (
     6  	mock "github.com/stretchr/testify/mock"
     7  
     8  	p2pmsg "github.com/onflow/flow-go/network/p2p/message"
     9  
    10  	time "time"
    11  )
    12  
    13  // GossipSubRpcValidationInspectorMetrics is an autogenerated mock type for the GossipSubRpcValidationInspectorMetrics type
    14  type GossipSubRpcValidationInspectorMetrics struct {
    15  	mock.Mock
    16  }
    17  
    18  // AsyncProcessingFinished provides a mock function with given fields: duration
    19  func (_m *GossipSubRpcValidationInspectorMetrics) AsyncProcessingFinished(duration time.Duration) {
    20  	_m.Called(duration)
    21  }
    22  
    23  // AsyncProcessingStarted provides a mock function with given fields:
    24  func (_m *GossipSubRpcValidationInspectorMetrics) AsyncProcessingStarted() {
    25  	_m.Called()
    26  }
    27  
    28  // OnActiveClusterIDsNotSetErr provides a mock function with given fields:
    29  func (_m *GossipSubRpcValidationInspectorMetrics) OnActiveClusterIDsNotSetErr() {
    30  	_m.Called()
    31  }
    32  
    33  // OnControlMessagesTruncated provides a mock function with given fields: messageType, diff
    34  func (_m *GossipSubRpcValidationInspectorMetrics) OnControlMessagesTruncated(messageType p2pmsg.ControlMessageType, diff int) {
    35  	_m.Called(messageType, diff)
    36  }
    37  
    38  // OnGraftDuplicateTopicIdsExceedThreshold provides a mock function with given fields:
    39  func (_m *GossipSubRpcValidationInspectorMetrics) OnGraftDuplicateTopicIdsExceedThreshold() {
    40  	_m.Called()
    41  }
    42  
    43  // OnGraftInvalidTopicIdsExceedThreshold provides a mock function with given fields:
    44  func (_m *GossipSubRpcValidationInspectorMetrics) OnGraftInvalidTopicIdsExceedThreshold() {
    45  	_m.Called()
    46  }
    47  
    48  // OnGraftMessageInspected provides a mock function with given fields: duplicateTopicIds, invalidTopicIds
    49  func (_m *GossipSubRpcValidationInspectorMetrics) OnGraftMessageInspected(duplicateTopicIds int, invalidTopicIds int) {
    50  	_m.Called(duplicateTopicIds, invalidTopicIds)
    51  }
    52  
    53  // OnIHaveControlMessageIdsTruncated provides a mock function with given fields: diff
    54  func (_m *GossipSubRpcValidationInspectorMetrics) OnIHaveControlMessageIdsTruncated(diff int) {
    55  	_m.Called(diff)
    56  }
    57  
    58  // OnIHaveDuplicateMessageIdsExceedThreshold provides a mock function with given fields:
    59  func (_m *GossipSubRpcValidationInspectorMetrics) OnIHaveDuplicateMessageIdsExceedThreshold() {
    60  	_m.Called()
    61  }
    62  
    63  // OnIHaveDuplicateTopicIdsExceedThreshold provides a mock function with given fields:
    64  func (_m *GossipSubRpcValidationInspectorMetrics) OnIHaveDuplicateTopicIdsExceedThreshold() {
    65  	_m.Called()
    66  }
    67  
    68  // OnIHaveInvalidTopicIdsExceedThreshold provides a mock function with given fields:
    69  func (_m *GossipSubRpcValidationInspectorMetrics) OnIHaveInvalidTopicIdsExceedThreshold() {
    70  	_m.Called()
    71  }
    72  
    73  // OnIHaveMessageIDsReceived provides a mock function with given fields: channel, msgIdCount
    74  func (_m *GossipSubRpcValidationInspectorMetrics) OnIHaveMessageIDsReceived(channel string, msgIdCount int) {
    75  	_m.Called(channel, msgIdCount)
    76  }
    77  
    78  // OnIHaveMessagesInspected provides a mock function with given fields: duplicateTopicIds, duplicateMessageIds, invalidTopicIds
    79  func (_m *GossipSubRpcValidationInspectorMetrics) OnIHaveMessagesInspected(duplicateTopicIds int, duplicateMessageIds int, invalidTopicIds int) {
    80  	_m.Called(duplicateTopicIds, duplicateMessageIds, invalidTopicIds)
    81  }
    82  
    83  // OnIWantCacheMissMessageIdsExceedThreshold provides a mock function with given fields:
    84  func (_m *GossipSubRpcValidationInspectorMetrics) OnIWantCacheMissMessageIdsExceedThreshold() {
    85  	_m.Called()
    86  }
    87  
    88  // OnIWantControlMessageIdsTruncated provides a mock function with given fields: diff
    89  func (_m *GossipSubRpcValidationInspectorMetrics) OnIWantControlMessageIdsTruncated(diff int) {
    90  	_m.Called(diff)
    91  }
    92  
    93  // OnIWantDuplicateMessageIdsExceedThreshold provides a mock function with given fields:
    94  func (_m *GossipSubRpcValidationInspectorMetrics) OnIWantDuplicateMessageIdsExceedThreshold() {
    95  	_m.Called()
    96  }
    97  
    98  // OnIWantMessageIDsReceived provides a mock function with given fields: msgIdCount
    99  func (_m *GossipSubRpcValidationInspectorMetrics) OnIWantMessageIDsReceived(msgIdCount int) {
   100  	_m.Called(msgIdCount)
   101  }
   102  
   103  // OnIWantMessagesInspected provides a mock function with given fields: duplicateCount, cacheMissCount
   104  func (_m *GossipSubRpcValidationInspectorMetrics) OnIWantMessagesInspected(duplicateCount int, cacheMissCount int) {
   105  	_m.Called(duplicateCount, cacheMissCount)
   106  }
   107  
   108  // OnIncomingRpcReceived provides a mock function with given fields: iHaveCount, iWantCount, graftCount, pruneCount, msgCount
   109  func (_m *GossipSubRpcValidationInspectorMetrics) OnIncomingRpcReceived(iHaveCount int, iWantCount int, graftCount int, pruneCount int, msgCount int) {
   110  	_m.Called(iHaveCount, iWantCount, graftCount, pruneCount, msgCount)
   111  }
   112  
   113  // OnInvalidControlMessageNotificationSent provides a mock function with given fields:
   114  func (_m *GossipSubRpcValidationInspectorMetrics) OnInvalidControlMessageNotificationSent() {
   115  	_m.Called()
   116  }
   117  
   118  // OnInvalidTopicIdDetectedForControlMessage provides a mock function with given fields: messageType
   119  func (_m *GossipSubRpcValidationInspectorMetrics) OnInvalidTopicIdDetectedForControlMessage(messageType p2pmsg.ControlMessageType) {
   120  	_m.Called(messageType)
   121  }
   122  
   123  // OnPruneDuplicateTopicIdsExceedThreshold provides a mock function with given fields:
   124  func (_m *GossipSubRpcValidationInspectorMetrics) OnPruneDuplicateTopicIdsExceedThreshold() {
   125  	_m.Called()
   126  }
   127  
   128  // OnPruneInvalidTopicIdsExceedThreshold provides a mock function with given fields:
   129  func (_m *GossipSubRpcValidationInspectorMetrics) OnPruneInvalidTopicIdsExceedThreshold() {
   130  	_m.Called()
   131  }
   132  
   133  // OnPruneMessageInspected provides a mock function with given fields: duplicateTopicIds, invalidTopicIds
   134  func (_m *GossipSubRpcValidationInspectorMetrics) OnPruneMessageInspected(duplicateTopicIds int, invalidTopicIds int) {
   135  	_m.Called(duplicateTopicIds, invalidTopicIds)
   136  }
   137  
   138  // OnPublishMessageInspected provides a mock function with given fields: totalErrCount, invalidTopicIdsCount, invalidSubscriptionsCount, invalidSendersCount
   139  func (_m *GossipSubRpcValidationInspectorMetrics) OnPublishMessageInspected(totalErrCount int, invalidTopicIdsCount int, invalidSubscriptionsCount int, invalidSendersCount int) {
   140  	_m.Called(totalErrCount, invalidTopicIdsCount, invalidSubscriptionsCount, invalidSendersCount)
   141  }
   142  
   143  // OnPublishMessagesInspectionErrorExceedsThreshold provides a mock function with given fields:
   144  func (_m *GossipSubRpcValidationInspectorMetrics) OnPublishMessagesInspectionErrorExceedsThreshold() {
   145  	_m.Called()
   146  }
   147  
   148  // OnRpcRejectedFromUnknownSender provides a mock function with given fields:
   149  func (_m *GossipSubRpcValidationInspectorMetrics) OnRpcRejectedFromUnknownSender() {
   150  	_m.Called()
   151  }
   152  
   153  // OnUnstakedPeerInspectionFailed provides a mock function with given fields:
   154  func (_m *GossipSubRpcValidationInspectorMetrics) OnUnstakedPeerInspectionFailed() {
   155  	_m.Called()
   156  }
   157  
   158  type mockConstructorTestingTNewGossipSubRpcValidationInspectorMetrics interface {
   159  	mock.TestingT
   160  	Cleanup(func())
   161  }
   162  
   163  // NewGossipSubRpcValidationInspectorMetrics creates a new instance of GossipSubRpcValidationInspectorMetrics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
   164  func NewGossipSubRpcValidationInspectorMetrics(t mockConstructorTestingTNewGossipSubRpcValidationInspectorMetrics) *GossipSubRpcValidationInspectorMetrics {
   165  	mock := &GossipSubRpcValidationInspectorMetrics{}
   166  	mock.Mock.Test(t)
   167  
   168  	t.Cleanup(func() { mock.AssertExpectations(t) })
   169  
   170  	return mock
   171  }