mocks

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Committee

type Committee struct {
	mock.Mock
}

Committee is an autogenerated mock type for the Committee type

func (*Committee) IsMember

func (_m *Committee) IsMember(_a0 []byte, _a1 uint64, _a2 uint8) bool

IsMember provides a mock function with given fields: _a0, _a1, _a2

func (*Committee) Quorum

func (_m *Committee) Quorum(_a0 uint64) int

Quorum provides a mock function with given fields:

type Event

type Event struct {
	mock.Mock
}

Event is an autogenerated mock type for the Event type

func (*Event) Equal

func (_m *Event) Equal(_a0 wire.Event) bool

Equal provides a mock function with given fields: _a0

func (*Event) Sender

func (_m *Event) Sender() []byte

Sender provides a mock function with given fields:

type EventHandler

type EventHandler struct {
	mock.Mock
}

EventHandler is an autogenerated mock type for the EventHandler type

func (*EventHandler) Deserialize

func (_m *EventHandler) Deserialize(_a0 *bytes.Buffer) (wire.Event, error)

Deserialize provides a mock function with given fields: _a0

func (*EventHandler) ExtractHeader

func (_m *EventHandler) ExtractHeader(_a0 wire.Event) *header.Header

ExtractHeader provides a mock function with given fields: _a0

func (*EventHandler) Marshal

func (_m *EventHandler) Marshal(_a0 *bytes.Buffer, _a1 wire.Event) error

Marshal provides a mock function with given fields: _a0, _a1

func (*EventHandler) Verify

func (_m *EventHandler) Verify(_a0 wire.Event) error

Verify provides a mock function with given fields: _a0

type EventProcessor

type EventProcessor struct {
	mock.Mock
}

EventProcessor is an autogenerated mock type for the EventProcessor type

func (*EventProcessor) Process

func (_m *EventProcessor) Process(_a0 wire.Event)

Process provides a mock function with given fields: _a0

type Foldable

type Foldable struct {
	mock.Mock
}

Foldable is an autogenerated mock type for the Foldable type

func (*Foldable) IsMember

func (_m *Foldable) IsMember(_a0 []byte, _a1 uint64, _a2 uint8) bool

IsMember provides a mock function with given fields: _a0, _a1, _a2

func (*Foldable) Pack

func (_m *Foldable) Pack(_a0 sortedset.Set, _a1 uint64, _a2 uint8) uint64

Pack provides a mock function with given fields: _a0, _a1, _a2

func (*Foldable) Quorum

func (_m *Foldable) Quorum(_a0 uint64) int

Quorum provides a mock function with given fields:

func (*Foldable) Unpack

func (_m *Foldable) Unpack(_a0 uint64, _a1 uint64, _a2 uint8) sortedset.Set

Unpack provides a mock function with given fields: _a0, _a1, _a2

type Reducers

type Reducers struct {
	mock.Mock
}

Reducers is an autogenerated mock type for the Reducers type

func (*Reducers) FilterAbsentees

func (_m *Reducers) FilterAbsentees(_a0 []wire.Event, _a1 uint64, _a2 uint8) user.VotingCommittee

FilterAbsentees provides a mock function with given fields: _a0, _a1, _a2

func (*Reducers) IsMember

func (_m *Reducers) IsMember(_a0 []byte, _a1 uint64, _a2 uint8) bool

IsMember provides a mock function with given fields: _a0, _a1, _a2

func (*Reducers) Quorum

func (_m *Reducers) Quorum(_a0 uint64) int

Quorum provides a mock function with given fields:

Jump to

Keyboard shortcuts

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