-
Notifications
You must be signed in to change notification settings - Fork 175
/
gossip_sub_scoring_metrics.go
75 lines (58 loc) · 2.48 KB
/
gossip_sub_scoring_metrics.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
// Code generated by mockery v2.21.4. DO NOT EDIT.
package mock
import (
channels "github.com/onflow/flow-go/network/channels"
mock "github.com/stretchr/testify/mock"
time "time"
)
// GossipSubScoringMetrics is an autogenerated mock type for the GossipSubScoringMetrics type
type GossipSubScoringMetrics struct {
mock.Mock
}
// OnAppSpecificScoreUpdated provides a mock function with given fields: _a0
func (_m *GossipSubScoringMetrics) OnAppSpecificScoreUpdated(_a0 float64) {
_m.Called(_a0)
}
// OnBehaviourPenaltyUpdated provides a mock function with given fields: _a0
func (_m *GossipSubScoringMetrics) OnBehaviourPenaltyUpdated(_a0 float64) {
_m.Called(_a0)
}
// OnFirstMessageDeliveredUpdated provides a mock function with given fields: _a0, _a1
func (_m *GossipSubScoringMetrics) OnFirstMessageDeliveredUpdated(_a0 channels.Topic, _a1 float64) {
_m.Called(_a0, _a1)
}
// OnIPColocationFactorUpdated provides a mock function with given fields: _a0
func (_m *GossipSubScoringMetrics) OnIPColocationFactorUpdated(_a0 float64) {
_m.Called(_a0)
}
// OnInvalidMessageDeliveredUpdated provides a mock function with given fields: _a0, _a1
func (_m *GossipSubScoringMetrics) OnInvalidMessageDeliveredUpdated(_a0 channels.Topic, _a1 float64) {
_m.Called(_a0, _a1)
}
// OnMeshMessageDeliveredUpdated provides a mock function with given fields: _a0, _a1
func (_m *GossipSubScoringMetrics) OnMeshMessageDeliveredUpdated(_a0 channels.Topic, _a1 float64) {
_m.Called(_a0, _a1)
}
// OnOverallPeerScoreUpdated provides a mock function with given fields: _a0
func (_m *GossipSubScoringMetrics) OnOverallPeerScoreUpdated(_a0 float64) {
_m.Called(_a0)
}
// OnTimeInMeshUpdated provides a mock function with given fields: _a0, _a1
func (_m *GossipSubScoringMetrics) OnTimeInMeshUpdated(_a0 channels.Topic, _a1 time.Duration) {
_m.Called(_a0, _a1)
}
// SetWarningStateCount provides a mock function with given fields: _a0
func (_m *GossipSubScoringMetrics) SetWarningStateCount(_a0 uint) {
_m.Called(_a0)
}
type mockConstructorTestingTNewGossipSubScoringMetrics interface {
mock.TestingT
Cleanup(func())
}
// NewGossipSubScoringMetrics creates a new instance of GossipSubScoringMetrics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewGossipSubScoringMetrics(t mockConstructorTestingTNewGossipSubScoringMetrics) *GossipSubScoringMetrics {
mock := &GossipSubScoringMetrics{}
mock.Mock.Test(t)
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
}