github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/module/mock/gossip_sub_scoring_registry_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  // GossipSubScoringRegistryMetrics is an autogenerated mock type for the GossipSubScoringRegistryMetrics type
     8  type GossipSubScoringRegistryMetrics struct {
     9  	mock.Mock
    10  }
    11  
    12  // DuplicateMessagePenalties provides a mock function with given fields: penalty
    13  func (_m *GossipSubScoringRegistryMetrics) DuplicateMessagePenalties(penalty float64) {
    14  	_m.Called(penalty)
    15  }
    16  
    17  // DuplicateMessagesCounts provides a mock function with given fields: count
    18  func (_m *GossipSubScoringRegistryMetrics) DuplicateMessagesCounts(count float64) {
    19  	_m.Called(count)
    20  }
    21  
    22  type mockConstructorTestingTNewGossipSubScoringRegistryMetrics interface {
    23  	mock.TestingT
    24  	Cleanup(func())
    25  }
    26  
    27  // NewGossipSubScoringRegistryMetrics creates a new instance of GossipSubScoringRegistryMetrics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    28  func NewGossipSubScoringRegistryMetrics(t mockConstructorTestingTNewGossipSubScoringRegistryMetrics) *GossipSubScoringRegistryMetrics {
    29  	mock := &GossipSubScoringRegistryMetrics{}
    30  	mock.Mock.Test(t)
    31  
    32  	t.Cleanup(func() { mock.AssertExpectations(t) })
    33  
    34  	return mock
    35  }