forked from ssvlabs/ssv-spec
/
alltests.go
129 lines (118 loc) · 4.24 KB
/
alltests.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
package spectest
import (
"github.com/MatheusFranco99/ssv-spec-AleaBFT/ssv/spectest/tests/messages"
"github.com/MatheusFranco99/ssv-spec-AleaBFT/ssv/spectest/tests/runner"
"github.com/MatheusFranco99/ssv-spec-AleaBFT/ssv/spectest/tests/runner/consensus"
"github.com/MatheusFranco99/ssv-spec-AleaBFT/ssv/spectest/tests/runner/duties/newduty"
"github.com/MatheusFranco99/ssv-spec-AleaBFT/ssv/spectest/tests/runner/duties/proposer"
"github.com/MatheusFranco99/ssv-spec-AleaBFT/ssv/spectest/tests/runner/duties/synccommitteeaggregator"
"github.com/MatheusFranco99/ssv-spec-AleaBFT/ssv/spectest/tests/runner/postconsensus"
"github.com/MatheusFranco99/ssv-spec-AleaBFT/ssv/spectest/tests/runner/preconsensus"
"github.com/MatheusFranco99/ssv-spec-AleaBFT/ssv/spectest/tests/valcheck/valcheckattestations"
"github.com/MatheusFranco99/ssv-spec-AleaBFT/ssv/spectest/tests/valcheck/valcheckduty"
"testing"
)
type SpecTest interface {
TestName() string
Run(t *testing.T)
}
var AllTests = []SpecTest{
runner.FullHappyFlow(),
postconsensus.TooManyRoots(),
postconsensus.TooFewRoots(),
postconsensus.UnorderedExpectedRoots(),
postconsensus.UnknownSigner(),
postconsensus.InconsistentBeaconSigner(),
postconsensus.PostFinish(),
postconsensus.NoRunningDuty(),
postconsensus.InvalidMessageSignature(),
postconsensus.InvalidBeaconSignature(),
postconsensus.DuplicateMsgDifferentRoots(),
postconsensus.DuplicateMsg(),
postconsensus.InvalidExpectedRoot(),
postconsensus.PreDecided(),
postconsensus.PostQuorum(),
postconsensus.InvalidMessage(),
postconsensus.ValidMessage(),
postconsensus.ValidMessage7Operators(),
postconsensus.ValidMessage10Operators(),
postconsensus.ValidMessage13Operators(),
postconsensus.Quorum(),
postconsensus.Quorum7Operators(),
postconsensus.Quorum10Operators(),
postconsensus.Quorum13Operators(),
postconsensus.InvalidDecidedValue(),
newduty.ConsensusNotStarted(),
newduty.NotDecided(),
newduty.PostDecided(),
newduty.Finished(),
newduty.Valid(),
newduty.PostWrongDecided(),
newduty.PostInvalidDecided(),
newduty.PostFutureDecided(),
consensus.FutureDecided(),
consensus.InvalidDecidedValue(),
consensus.NoRunningDuty(),
consensus.NoRunningConsensusInstance(),
consensus.PostFinish(),
consensus.PostDecided(),
consensus.ValidDecided(),
consensus.ValidDecided7Operators(),
consensus.ValidDecided10Operators(),
consensus.ValidDecided13Operators(),
consensus.ValidMessage(),
synccommitteeaggregator.SomeAggregatorQuorum(),
synccommitteeaggregator.NoneAggregatorQuorum(),
synccommitteeaggregator.AllAggregatorQuorum(),
proposer.ProposeBlindedBlockDecidedRegular(),
proposer.ProposeRegularBlockDecidedBlinded(),
preconsensus.NoRunningDuty(),
preconsensus.TooFewRoots(),
preconsensus.TooManyRoots(),
preconsensus.UnorderedExpectedRoots(),
preconsensus.InvalidSignedMessage(),
preconsensus.InvalidExpectedRoot(),
preconsensus.DuplicateMsg(),
preconsensus.DuplicateMsgDifferentRoots(),
preconsensus.PostFinish(),
preconsensus.PostDecided(),
preconsensus.PostQuorum(),
preconsensus.Quorum(),
preconsensus.Quorum7Operators(),
preconsensus.Quorum10Operators(),
preconsensus.Quorum130Operators(),
preconsensus.ValidMessage(),
preconsensus.ValidMessage7Operators(),
preconsensus.ValidMessage10Operators(),
preconsensus.ValidMessage13Operators(),
preconsensus.InconsistentBeaconSigner(),
preconsensus.UnknownSigner(),
preconsensus.InvalidBeaconSignature(),
preconsensus.InvalidMessageSignature(),
messages.EncodingAndRoot(),
messages.NoMsgs(),
messages.InvalidMsg(),
messages.ValidContributionProofMetaData(),
messages.SigValid(),
messages.SigTooShort(),
messages.SigTooLong(),
messages.PartialSigValid(),
messages.PartialSigTooShort(),
messages.PartialSigTooLong(),
messages.PartialRootValid(),
messages.PartialRootTooShort(),
messages.PartialRootTooLong(),
messages.MessageSigner0(),
messages.SignedMsgSigner0(),
valcheckduty.WrongValidatorIndex(),
valcheckduty.WrongValidatorPK(),
valcheckduty.WrongDutyType(),
valcheckduty.FarFutureDutySlot(),
valcheckattestations.Slashable(),
valcheckattestations.SourceHigherThanTarget(),
valcheckattestations.FarFutureTarget(),
valcheckattestations.CommitteeIndexMismatch(),
valcheckattestations.SlotMismatch(),
valcheckattestations.AttestationDataNil(),
valcheckattestations.Valid(),
}