testutils

package
v0.0.0-...-bc8cfc3 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockProposer

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

MockProposer is a simple proposer implementation for use in tests.

func (*MockProposer) ChangesBetween

func (mp *MockProposer) ChangesBetween(from, to api.Version) ([]state.Change, error)

ChangesBetween returns changes after "from" up to and including "to".

func (*MockProposer) GetVersion

func (mp *MockProposer) GetVersion() *api.Version

GetVersion returns the current version.

func (*MockProposer) ProposeValue

func (mp *MockProposer) ProposeValue(ctx context.Context, storeAction []api.StoreAction, cb func()) error

ProposeValue propagates a value. In this mock implementation, it just stores the value locally.

Jump to

Keyboard shortcuts

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