Documentation ¶
Index ¶
- func CommitDataEncoding() tests.SpecTest
- func CreateCommit() tests.SpecTest
- func CreatePrepare() tests.SpecTest
- func CreateProposal() tests.SpecTest
- func CreateProposalNotPreviouslyPrepared() tests.SpecTest
- func CreateProposalPreviouslyPrepared() tests.SpecTest
- func CreateRoundChange() tests.SpecTest
- func CreateRoundChangeNoJustificationQuorum() tests.SpecTest
- func CreateRoundChangeNoJustificationQuorumSC() *comparable.StateComparison
- func CreateRoundChangePreviouslyPrepared() tests.SpecTest
- func GetRoot() tests.SpecTest
- func InvalidHashDataRoot() tests.SpecTest
- func InvalidPrepareJustificationsUnmarshalling() tests.SpecTest
- func InvalidRoundChangeJustificationsUnmarshalling() tests.SpecTest
- func MarshalJustifications() tests.SpecTest
- func MarshalJustificationsWithFullData() tests.SpecTest
- func MarshalJustificationsWithoutFullData() tests.SpecTest
- func MsgNilIdentifier() tests.SpecTest
- func MsgNonZeroIdentifier() tests.SpecTest
- func MsgTypeUnknown() tests.SpecTest
- func PrepareDataEncoding() tests.SpecTest
- func PrepareJustificationsUnmarshalling() tests.SpecTest
- func ProposeDataEncoding() tests.SpecTest
- func RoundChangeDataEncoding() tests.SpecTest
- func RoundChangeJustificationsUnmarshalling() tests.SpecTest
- func RoundChangeNotPreparedJustifications() tests.SpecTest
- func RoundChangePrePreparedJustifications() tests.SpecTest
- func RoundChangePrepared() tests.SpecTest
- func SSZMarshaling() tests.SpecTest
- func SignedMessageEncoding() tests.SpecTest
- func SignedMessageSigner0() tests.SpecTest
- func SignedMsgDuplicateSigners() tests.SpecTest
- func SignedMsgMultiSigners() tests.SpecTest
- func SignedMsgNoSigners() tests.SpecTest
- func UnmarshalJustifications() tests.SpecTest
- func ValidHashDataRoot() tests.SpecTest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommitDataEncoding ¶
CommitDataEncoding tests encoding CommitData
func CreateProposal ¶
CreateProposal tests creating a proposal msg, not previously prepared
func CreateProposalNotPreviouslyPrepared ¶
CreateProposalNotPreviouslyPrepared tests creating a proposal msg, non-first round and not previously prepared
func CreateProposalPreviouslyPrepared ¶
CreateProposalPreviouslyPrepared tests creating a proposal msg,previously prepared
func CreateRoundChange ¶
CreateRoundChange tests creating a round change msg, not previously prepared
func CreateRoundChangeNoJustificationQuorum ¶ added in v0.3.1
CreateRoundChangeNoJustificationQuorum tests creating a round change msg that was previouly prepared but failed to extract a justification quorum (shouldn't happen). The result should be an unjustified round change.
func CreateRoundChangeNoJustificationQuorumSC ¶ added in v0.3.1
func CreateRoundChangeNoJustificationQuorumSC() *comparable.StateComparison
func CreateRoundChangePreviouslyPrepared ¶
CreateRoundChangePreviouslyPrepared tests creating a round change msg,previously prepared
func InvalidHashDataRoot ¶ added in v0.3.0
InvalidHashDataRoot tests an invalid hash data root
func InvalidPrepareJustificationsUnmarshalling ¶ added in v0.3.0
InvalidPrepareJustificationsUnmarshalling tests unmarshalling invalid prepare justifications (during message.validate())
func InvalidRoundChangeJustificationsUnmarshalling ¶ added in v0.3.0
InvalidRoundChangeJustificationsUnmarshalling tests unmarshalling invalid round change justifications (during message.validate())
func MarshalJustifications ¶ added in v0.3.1
MarshalJustifications tests marshalling justifications
func MarshalJustificationsWithFullData ¶ added in v0.3.1
MarshalJustificationsWithFullData tests marshalling justifications with full data (should omit it)
func MarshalJustificationsWithoutFullData ¶ added in v0.3.1
MarshalJustificationsWithoutFullData tests marshalling justifications without full data.
func MsgNilIdentifier ¶
MsgNilIdentifier tests Message with Identifier == nil
func MsgNonZeroIdentifier ¶
MsgNonZeroIdentifier tests Message with len(Identifier) == 0
func PrepareDataEncoding ¶
PrepareDataEncoding tests encoding PrepareData
func PrepareJustificationsUnmarshalling ¶ added in v0.3.0
PrepareJustificationsUnmarshalling tests unmarshalling prepare justifications
func ProposeDataEncoding ¶
ProposeDataEncoding tests encoding ProposalData
func RoundChangeDataEncoding ¶
RoundChangeDataEncoding tests encoding RoundChangeData
func RoundChangeJustificationsUnmarshalling ¶ added in v0.3.0
RoundChangeJustificationsUnmarshalling tests unmarshalling round change justifications
func RoundChangeNotPreparedJustifications ¶
RoundChangeNotPreparedJustifications tests valid justified change round (not prev prepared)
func RoundChangePrePreparedJustifications ¶
RoundChangePrePreparedJustifications tests valid justified change round (prev prepared)
func RoundChangePrepared ¶ added in v0.3.0
RoundChangePrepared tests a round change prepared return value
func SSZMarshaling ¶ added in v0.3.0
SSZMarshaling tests a valid marshaling of a signed message
func SignedMessageEncoding ¶
SignedMessageEncoding tests encoding SignedMessage
func SignedMessageSigner0 ¶ added in v0.2.7
SignedMessageSigner0 tests SignedMessage signer == 0
func SignedMsgDuplicateSigners ¶ added in v0.2.7
SignedMsgDuplicateSigners tests SignedMessage with duplicate signers
func SignedMsgMultiSigners ¶ added in v0.2.7
SignedMsgMultiSigners tests SignedMessage with multi signers
func SignedMsgNoSigners ¶
SignedMsgNoSigners tests SignedMessage len(signers) == 0
func UnmarshalJustifications ¶ added in v0.3.1
UnmarshalJustifications tests unmarshalling justifications
func ValidHashDataRoot ¶ added in v0.3.0
ValidHashDataRoot tests a valid hash data root
Types ¶
This section is empty.
Source Files ¶
- commit_data_encoding.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_no_justification_quorum.go
- create_round_change_prev_prepared.go
- invalid_hash_data_root.go
- invalid_prepare_justification_unmarshaling.go
- invalid_round_change_justification_unmarshaling.go
- marshal_justification.go
- marshal_justification_with_full_data.go
- marshal_justification_without_full_data.go
- msg_nil_identifier.go
- msg_non_zero_identifier.go
- msg_type_unknown.go
- prepare_data_encoding.go
- prepare_justification_unmarshaling.go
- propose_data_encoding.go
- rc_data_encoding.go
- rc_not_prepared_justifications.go
- rc_prev_prepared_justifications.go
- root.go
- round_change_justification_unmarshaling.go
- round_change_prepared.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
- ssz_marshaling.go
- unmarshal_justification.go
- valid_hash_data_root.go