-
Notifications
You must be signed in to change notification settings - Fork 202
/
ratingsInfoMock.go
54 lines (44 loc) · 1.39 KB
/
ratingsInfoMock.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
package mock
import "github.com/ElrondNetwork/elrond-go/process"
// RatingsInfoMock -
type RatingsInfoMock struct {
StartRatingProperty uint32
MaxRatingProperty uint32
MinRatingProperty uint32
SignedBlocksThresholdProperty float32
MetaRatingsStepDataProperty process.RatingsStepHandler
ShardRatingsStepDataProperty process.RatingsStepHandler
SelectionChancesProperty []process.SelectionChance
}
// StartRating -
func (rd *RatingsInfoMock) StartRating() uint32 {
return rd.StartRatingProperty
}
// MaxRating -
func (rd *RatingsInfoMock) MaxRating() uint32 {
return rd.MaxRatingProperty
}
// MinRating -
func (rd *RatingsInfoMock) MinRating() uint32 {
return rd.MinRatingProperty
}
// SignedBlocksThreshold -
func (rd *RatingsInfoMock) SignedBlocksThreshold() float32 {
return rd.SignedBlocksThresholdProperty
}
// SelectionChances -
func (rd *RatingsInfoMock) SelectionChances() []process.SelectionChance {
return rd.SelectionChancesProperty
}
// MetaChainRatingsStepHandler -
func (rd *RatingsInfoMock) MetaChainRatingsStepHandler() process.RatingsStepHandler {
return rd.MetaRatingsStepDataProperty
}
// ShardChainRatingsStepHandler -
func (rd *RatingsInfoMock) ShardChainRatingsStepHandler() process.RatingsStepHandler {
return rd.ShardRatingsStepDataProperty
}
// IsInterfaceNil -
func (rd *RatingsInfoMock) IsInterfaceNil() bool {
return rd == nil
}