tests

package
v0.0.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 4, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangeRoundAndDecide

type ChangeRoundAndDecide struct {
	// contains filtered or unexported fields
}

ChangeRoundAndDecide tests coming to consensus after a non prepared change round

func (*ChangeRoundAndDecide) MessagesSequence

func (test *ChangeRoundAndDecide) MessagesSequence(t *testing.T) []*proto.SignedMessage

MessagesSequence includes all test messages

func (*ChangeRoundAndDecide) Name

func (test *ChangeRoundAndDecide) Name() string

Name returns test name

func (*ChangeRoundAndDecide) Prepare

func (test *ChangeRoundAndDecide) Prepare(t *testing.T)

Prepare prepares the test

func (*ChangeRoundAndDecide) Run

func (test *ChangeRoundAndDecide) Run(t *testing.T)

Run runs the test

type ChangeRoundPartialQuorum added in v0.0.6

type ChangeRoundPartialQuorum struct {
	// contains filtered or unexported fields
}

ChangeRoundPartialQuorum tests partial round change behaviour

func (*ChangeRoundPartialQuorum) MessagesSequence added in v0.0.6

func (test *ChangeRoundPartialQuorum) MessagesSequence(t *testing.T) [][]*proto.SignedMessage

MessagesSequence includes all test messages

func (*ChangeRoundPartialQuorum) Name added in v0.0.6

func (test *ChangeRoundPartialQuorum) Name() string

Name returns test name

func (*ChangeRoundPartialQuorum) Prepare added in v0.0.6

func (test *ChangeRoundPartialQuorum) Prepare(t *testing.T)

Prepare prepares the test

func (*ChangeRoundPartialQuorum) Run added in v0.0.6

func (test *ChangeRoundPartialQuorum) Run(t *testing.T)

Run runs the test

type DecideDifferentValue

type DecideDifferentValue struct {
	// contains filtered or unexported fields
}

DecideDifferentValue tests that a different commit value can be accepted than the prepared value. This is a byzantine behaviour by 2/3 of the nodes as the iBFT protocol dictates broadcasting a commit message with the prepared value TODO - should we allow this?

func (*DecideDifferentValue) MessagesSequence

func (test *DecideDifferentValue) MessagesSequence(t *testing.T) []*proto.SignedMessage

MessagesSequence includes all test messages

func (*DecideDifferentValue) Name

func (test *DecideDifferentValue) Name() string

Name returns test name

func (*DecideDifferentValue) Prepare

func (test *DecideDifferentValue) Prepare(t *testing.T)

Prepare prepares test

func (*DecideDifferentValue) Run

func (test *DecideDifferentValue) Run(t *testing.T)

Run runs the test

type DuplicateMessages

type DuplicateMessages struct {
	// contains filtered or unexported fields
}

DuplicateMessages tests broadcasting duplicated messages handling, shouldn't affect consensus.

func (*DuplicateMessages) MessagesSequence

func (test *DuplicateMessages) MessagesSequence(t *testing.T) []*proto.SignedMessage

MessagesSequence includes all messages

func (*DuplicateMessages) Name

func (test *DuplicateMessages) Name() string

Name returns test name

func (*DuplicateMessages) Prepare

func (test *DuplicateMessages) Prepare(t *testing.T)

Prepare prepares the test

func (*DuplicateMessages) Run

func (test *DuplicateMessages) Run(t *testing.T)

Run runs the test

type NonJustifiedPrePrepapre

type NonJustifiedPrePrepapre struct {
	// contains filtered or unexported fields
}

NonJustifiedPrePrepapre tests coming to consensus after a non prepared change round

func (*NonJustifiedPrePrepapre) MessagesSequence

func (test *NonJustifiedPrePrepapre) MessagesSequence(t *testing.T) []*proto.SignedMessage

MessagesSequence includes all test messages

func (*NonJustifiedPrePrepapre) Name

func (test *NonJustifiedPrePrepapre) Name() string

Name returns test name

func (*NonJustifiedPrePrepapre) Prepare

func (test *NonJustifiedPrePrepapre) Prepare(t *testing.T)

Prepare prepares the test

func (*NonJustifiedPrePrepapre) Run

func (test *NonJustifiedPrePrepapre) Run(t *testing.T)

Run runs the test

type PrepareAtDifferentRound

type PrepareAtDifferentRound struct {
	// contains filtered or unexported fields
}

PrepareAtDifferentRound tests receiving a quorum of prepare msgs in a different round than state round.

func (*PrepareAtDifferentRound) MessagesSequence

func (test *PrepareAtDifferentRound) MessagesSequence(t *testing.T) []*proto.SignedMessage

MessagesSequence includes all test messages

func (*PrepareAtDifferentRound) Name

func (test *PrepareAtDifferentRound) Name() string

Name returns test name

func (*PrepareAtDifferentRound) Prepare

func (test *PrepareAtDifferentRound) Prepare(t *testing.T)

Prepare prepares the test

func (*PrepareAtDifferentRound) Run

func (test *PrepareAtDifferentRound) Run(t *testing.T)

Run runs the test

type PrepareChangeRoundAndDecide

type PrepareChangeRoundAndDecide struct {
	// contains filtered or unexported fields
}

PrepareChangeRoundAndDecide tests coming to consensus after preparing and then changing round.

func (*PrepareChangeRoundAndDecide) MessagesSequence

func (test *PrepareChangeRoundAndDecide) MessagesSequence(t *testing.T) []*proto.SignedMessage

MessagesSequence includes test messages

func (*PrepareChangeRoundAndDecide) Name

func (test *PrepareChangeRoundAndDecide) Name() string

Name returns test name

func (*PrepareChangeRoundAndDecide) Prepare

func (test *PrepareChangeRoundAndDecide) Prepare(t *testing.T)

Prepare prepares the test

func (*PrepareChangeRoundAndDecide) Run

func (test *PrepareChangeRoundAndDecide) Run(t *testing.T)

Run runs the test

type ValidSimpleRun

type ValidSimpleRun struct {
	// contains filtered or unexported fields
}

ValidSimpleRun is a simple happy flow of iBFT

func (*ValidSimpleRun) MessagesSequence

func (test *ValidSimpleRun) MessagesSequence(t *testing.T) []*proto.SignedMessage

MessagesSequence includes all messages

func (*ValidSimpleRun) Name

func (test *ValidSimpleRun) Name() string

Name returns test name

func (*ValidSimpleRun) Prepare

func (test *ValidSimpleRun) Prepare(t *testing.T)

Prepare prepares the test

func (*ValidSimpleRun) Run

func (test *ValidSimpleRun) Run(t *testing.T)

Run runs the test

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL