Documentation ¶
Index ¶
- func CommitDataEncoding() *tests.MsgSpecTest
- func CommitDataInvalid() *tests.MsgSpecTest
- func CreateCommit() *tests.CreateMsgSpecTest
- func CreatePrepare() *tests.CreateMsgSpecTest
- func CreateProposal() *tests.CreateMsgSpecTest
- func CreateProposalNotPreviouslyPrepared() *tests.CreateMsgSpecTest
- func CreateProposalPreviouslyPrepared() *tests.CreateMsgSpecTest
- func CreateRoundChange() *tests.CreateMsgSpecTest
- func CreateRoundChangePreviouslyPrepared() *tests.CreateMsgSpecTest
- func GetRoot() *tests.MsgSpecTest
- func MsgDataNil() *tests.MsgSpecTest
- func MsgDataNonZero() *tests.MsgSpecTest
- func MsgNilIdentifier() *tests.MsgSpecTest
- func MsgNonZeroIdentifier() *tests.MsgSpecTest
- func MsgTypeUnknown() *tests.MsgSpecTest
- func PrepareDataEncoding() *tests.MsgSpecTest
- func PrepareDataInvalid() *tests.MsgSpecTest
- func ProposalDataInvalid() *tests.MsgSpecTest
- func ProposeDataEncoding() *tests.MsgSpecTest
- func RoundChangeDataEncoding() *tests.MsgSpecTest
- func RoundChangeDataInvalidJustifications() *tests.MsgSpecTest
- func RoundChangeDataInvalidPreparedRound() *tests.MsgSpecTest
- func RoundChangeDataInvalidPreparedValue() *tests.MsgSpecTest
- func RoundChangeNotPreparedJustifications() *tests.MsgSpecTest
- func RoundChangePrePreparedJustifications() *tests.MsgSpecTest
- func SignedMessageEncoding() *tests.MsgSpecTest
- func SignedMessageSigner0() *tests.MsgSpecTest
- func SignedMsgDuplicateSigners() *tests.MsgSpecTest
- func SignedMsgMultiSigners() *tests.MsgSpecTest
- func SignedMsgNoSigners() *tests.MsgSpecTest
- func SignedMsgSigTooLong() *tests.MsgSpecTest
- func SignedMsgSigTooShort() *tests.MsgSpecTest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommitDataEncoding ¶
func CommitDataEncoding() *tests.MsgSpecTest
CommitDataEncoding tests encoding CommitData
func CommitDataInvalid ¶
func CommitDataInvalid() *tests.MsgSpecTest
CommitDataInvalid tests commit data len == 0
func CreateCommit ¶
func CreateCommit() *tests.CreateMsgSpecTest
CreateCommit tests creating a commit msg
func CreatePrepare ¶
func CreatePrepare() *tests.CreateMsgSpecTest
CreatePrepare tests creating a prepare msg
func CreateProposal ¶
func CreateProposal() *tests.CreateMsgSpecTest
CreateProposal tests creating a proposal msg, not previously prepared
func CreateProposalNotPreviouslyPrepared ¶
func CreateProposalNotPreviouslyPrepared() *tests.CreateMsgSpecTest
CreateProposalNotPreviouslyPrepared tests creating a proposal msg, non-first round and not previously prepared
func CreateProposalPreviouslyPrepared ¶
func CreateProposalPreviouslyPrepared() *tests.CreateMsgSpecTest
CreateProposalPreviouslyPrepared tests creating a proposal msg,previously prepared
func CreateRoundChange ¶
func CreateRoundChange() *tests.CreateMsgSpecTest
CreateRoundChange tests creating a round change msg, not previously prepared
func CreateRoundChangePreviouslyPrepared ¶
func CreateRoundChangePreviouslyPrepared() *tests.CreateMsgSpecTest
CreateRoundChangePreviouslyPrepared tests creating a round change msg,previously prepared
func MsgNilIdentifier ¶
func MsgNilIdentifier() *tests.MsgSpecTest
MsgNilIdentifier tests Message with Identifier == nil
func MsgNonZeroIdentifier ¶
func MsgNonZeroIdentifier() *tests.MsgSpecTest
MsgNonZeroIdentifier tests Message with len(Identifier) == 0
func MsgTypeUnknown ¶
func MsgTypeUnknown() *tests.MsgSpecTest
MsgTypeUnknown tests Message type > 5
func PrepareDataEncoding ¶
func PrepareDataEncoding() *tests.MsgSpecTest
PrepareDataEncoding tests encoding PrepareData
func PrepareDataInvalid ¶
func PrepareDataInvalid() *tests.MsgSpecTest
PrepareDataInvalid tests prepare data len == 0
func ProposalDataInvalid ¶
func ProposalDataInvalid() *tests.MsgSpecTest
ProposalDataInvalid tests proposal data len == 0
func ProposeDataEncoding ¶
func ProposeDataEncoding() *tests.MsgSpecTest
ProposeDataEncoding tests encoding ProposalData
func RoundChangeDataEncoding ¶
func RoundChangeDataEncoding() *tests.MsgSpecTest
RoundChangeDataEncoding tests encoding RoundChangeData
func RoundChangeDataInvalidJustifications ¶
func RoundChangeDataInvalidJustifications() *tests.MsgSpecTest
RoundChangeDataInvalidJustifications tests PreparedRound != NoRound len(RoundChangeJustification) == 0
func RoundChangeDataInvalidPreparedRound ¶
func RoundChangeDataInvalidPreparedRound() *tests.MsgSpecTest
RoundChangeDataInvalidPreparedRound tests PreparedValue != nil && PreparedRound == NoRound
func RoundChangeDataInvalidPreparedValue ¶
func RoundChangeDataInvalidPreparedValue() *tests.MsgSpecTest
RoundChangeDataInvalidPreparedValue tests PreparedRound != NoRound && PreparedValue == nil
func RoundChangeNotPreparedJustifications ¶
func RoundChangeNotPreparedJustifications() *tests.MsgSpecTest
RoundChangeNotPreparedJustifications tests valid justified change round (not prev prepared)
func RoundChangePrePreparedJustifications ¶
func RoundChangePrePreparedJustifications() *tests.MsgSpecTest
RoundChangePrePreparedJustifications tests valid justified change round (prev prepared)
func SignedMessageEncoding ¶
func SignedMessageEncoding() *tests.MsgSpecTest
SignedMessageEncoding tests encoding SignedMessage
func SignedMessageSigner0 ¶
func SignedMessageSigner0() *tests.MsgSpecTest
SignedMessageSigner0 tests SignedMessage signer == 0
func SignedMsgDuplicateSigners ¶
func SignedMsgDuplicateSigners() *tests.MsgSpecTest
SignedMsgDuplicateSigners tests SignedMessage with duplicate signers
func SignedMsgMultiSigners ¶
func SignedMsgMultiSigners() *tests.MsgSpecTest
SignedMsgMultiSigners tests SignedMessage with multi signers
func SignedMsgNoSigners ¶
func SignedMsgNoSigners() *tests.MsgSpecTest
SignedMsgNoSigners tests SignedMessage len(signers) == 0
func SignedMsgSigTooLong ¶
func SignedMsgSigTooLong() *tests.MsgSpecTest
SignedMsgSigTooLong tests SignedMessage len(signature) > 96
func SignedMsgSigTooShort ¶
func SignedMsgSigTooShort() *tests.MsgSpecTest
SignedMsgSigTooShort tests SignedMessage len(signature) < 96
Types ¶
This section is empty.
Source Files ¶
- commit_data_encoding.go
- commit_data_invalid.go
- create_commit.go
- create_prepare.go
- create_proposal.go
- create_proposal_not_prev_prepared.go
- create_proposal_prev_prepared.go
- create_round_change.go
- create_round_change_prev_prepared.go
- msg_data_nil.go
- msg_data_non_zero.go
- msg_nil_identifier.go
- msg_non_zero_identifier.go
- msg_type_unknown.go
- prepare_data_encoding.go
- prepare_data_invalid.go
- proposal_data_invalid.go
- propose_data_encoding.go
- rc_data_encoding.go
- rc_invalid_justifications.go
- rc_invalid_prepared_round.go
- rc_invalid_prepared_value.go
- rc_not_prepared_justifications.go
- rc_prev_prepared_justifications.go
- root.go
- signature_too_long.go
- signature_too_short.go
- signed_msg_duplicate_signers.go
- signed_msg_encoding.go
- signed_msg_multi_signers.go
- signed_msg_no_signers.go
- signed_msg_signer_zero.go