testutils

package
v0.0.0-...-be68371 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2017 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