common

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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 InvalidSig

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

InvalidSig tests processing msgs with wrong sig.

func (*InvalidSig) MessagesSequence

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

MessagesSequence includes all messages

func (*InvalidSig) Name

func (test *InvalidSig) Name() string

Name returns test name

func (*InvalidSig) Prepare

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

Prepare prepares the test

func (*InvalidSig) Run

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

Run runs the test

type WrongSequenceNumber

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

WrongSequenceNumber tests processing msgs with wrong seq number.

func (*WrongSequenceNumber) MessagesSequence

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

MessagesSequence includes all messages

func (*WrongSequenceNumber) Name

func (test *WrongSequenceNumber) Name() string

Name returns test name

func (*WrongSequenceNumber) Prepare

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

Prepare prepares the test

func (*WrongSequenceNumber) Run

func (test *WrongSequenceNumber) 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