...

Package mocks

import "github.com/hyperledger/fabric/orderer/consensus/smartbft/mocks"
Overview
Index

Overview ▾

Code generated by counterfeiter. DO NOT EDIT.

Index ▾

type AccessController
    func (_m *AccessController) Evaluate(signatureSet []*common.SignedData) error
type ConsenterVerifier
    func (_m *ConsenterVerifier) Evaluate(signatureSet []*common.SignedData) error
type FakeBlockPuller
    func (fake *FakeBlockPuller) Close()
    func (fake *FakeBlockPuller) CloseCallCount() int
    func (fake *FakeBlockPuller) CloseCalls(stub func())
    func (fake *FakeBlockPuller) HeightsByEndpoints() (map[string]uint64, error)
    func (fake *FakeBlockPuller) HeightsByEndpointsCallCount() int
    func (fake *FakeBlockPuller) HeightsByEndpointsCalls(stub func() (map[string]uint64, error))
    func (fake *FakeBlockPuller) HeightsByEndpointsReturns(result1 map[string]uint64, result2 error)
    func (fake *FakeBlockPuller) HeightsByEndpointsReturnsOnCall(i int, result1 map[string]uint64, result2 error)
    func (fake *FakeBlockPuller) Invocations() map[string][][]interface{}
    func (fake *FakeBlockPuller) PullBlock(arg1 uint64) *common.Block
    func (fake *FakeBlockPuller) PullBlockArgsForCall(i int) uint64
    func (fake *FakeBlockPuller) PullBlockCallCount() int
    func (fake *FakeBlockPuller) PullBlockCalls(stub func(uint64) *common.Block)
    func (fake *FakeBlockPuller) PullBlockReturns(result1 *common.Block)
    func (fake *FakeBlockPuller) PullBlockReturnsOnCall(i int, result1 *common.Block)
type Ledger
    func (_m *Ledger) Block(number uint64) *common.Block
    func (_m *Ledger) Height() uint64
type MessageReceiver
    func (_m *MessageReceiver) HandleMessage(sender uint64, m *smartbftprotos.Message)
    func (_m *MessageReceiver) HandleRequest(sender uint64, req []byte)
type RPC
    func (_m *RPC) SendConsensus(dest uint64, msg *orderer.ConsensusRequest) error
    func (_m *RPC) SendSubmit(dest uint64, request *orderer.SubmitRequest) error
type ReceiverGetter
    func (_m *ReceiverGetter) ReceiverByChain(channelID string) smartbft.MessageReceiver
type Sequencer
    func (_m *Sequencer) Sequence() uint64
type SignerSerializer
    func (_m *SignerSerializer) Serialize() ([]byte, error)
    func (_m *SignerSerializer) Sign(message []byte) ([]byte, error)

Package files

access_controller.go consenter_verifier.go ledger.go message_receiver.go mock_blockpuller.go receiver_getter.go rpc.go sequencer.go signer_serializer.go

type AccessController

AccessController is an autogenerated mock type for the AccessController type

type AccessController struct {
    mock.Mock
}

func (*AccessController) Evaluate

func (_m *AccessController) Evaluate(signatureSet []*common.SignedData) error

Evaluate provides a mock function with given fields: signatureSet

type ConsenterVerifier

ConsenterVerifier is an autogenerated mock type for the ConsenterVerifier type

type ConsenterVerifier struct {
    mock.Mock
}

func (*ConsenterVerifier) Evaluate

func (_m *ConsenterVerifier) Evaluate(signatureSet []*common.SignedData) error

Evaluate provides a mock function with given fields: signatureSet

type FakeBlockPuller

type FakeBlockPuller struct {
    CloseStub func()

    HeightsByEndpointsStub func() (map[string]uint64, error)

    PullBlockStub func(uint64) *common.Block
    // contains filtered or unexported fields
}

func (*FakeBlockPuller) Close

func (fake *FakeBlockPuller) Close()

func (*FakeBlockPuller) CloseCallCount

func (fake *FakeBlockPuller) CloseCallCount() int

func (*FakeBlockPuller) CloseCalls

func (fake *FakeBlockPuller) CloseCalls(stub func())

func (*FakeBlockPuller) HeightsByEndpoints

func (fake *FakeBlockPuller) HeightsByEndpoints() (map[string]uint64, error)

func (*FakeBlockPuller) HeightsByEndpointsCallCount

func (fake *FakeBlockPuller) HeightsByEndpointsCallCount() int

func (*FakeBlockPuller) HeightsByEndpointsCalls

func (fake *FakeBlockPuller) HeightsByEndpointsCalls(stub func() (map[string]uint64, error))

func (*FakeBlockPuller) HeightsByEndpointsReturns

func (fake *FakeBlockPuller) HeightsByEndpointsReturns(result1 map[string]uint64, result2 error)

func (*FakeBlockPuller) HeightsByEndpointsReturnsOnCall

func (fake *FakeBlockPuller) HeightsByEndpointsReturnsOnCall(i int, result1 map[string]uint64, result2 error)

func (*FakeBlockPuller) Invocations

func (fake *FakeBlockPuller) Invocations() map[string][][]interface{}

func (*FakeBlockPuller) PullBlock

func (fake *FakeBlockPuller) PullBlock(arg1 uint64) *common.Block

func (*FakeBlockPuller) PullBlockArgsForCall

func (fake *FakeBlockPuller) PullBlockArgsForCall(i int) uint64

func (*FakeBlockPuller) PullBlockCallCount

func (fake *FakeBlockPuller) PullBlockCallCount() int

func (*FakeBlockPuller) PullBlockCalls

func (fake *FakeBlockPuller) PullBlockCalls(stub func(uint64) *common.Block)

func (*FakeBlockPuller) PullBlockReturns

func (fake *FakeBlockPuller) PullBlockReturns(result1 *common.Block)

func (*FakeBlockPuller) PullBlockReturnsOnCall

func (fake *FakeBlockPuller) PullBlockReturnsOnCall(i int, result1 *common.Block)

type Ledger

Ledger is an autogenerated mock type for the Ledger type

type Ledger struct {
    mock.Mock
}

func (*Ledger) Block

func (_m *Ledger) Block(number uint64) *common.Block

Block provides a mock function with given fields: number

func (*Ledger) Height

func (_m *Ledger) Height() uint64

Height provides a mock function with given fields:

type MessageReceiver

MessageReceiver is an autogenerated mock type for the MessageReceiver type

type MessageReceiver struct {
    mock.Mock
}

func (*MessageReceiver) HandleMessage

func (_m *MessageReceiver) HandleMessage(sender uint64, m *smartbftprotos.Message)

HandleMessage provides a mock function with given fields: sender, m

func (*MessageReceiver) HandleRequest

func (_m *MessageReceiver) HandleRequest(sender uint64, req []byte)

HandleRequest provides a mock function with given fields: sender, req

type RPC

RPC is an autogenerated mock type for the RPC type

type RPC struct {
    mock.Mock
}

func (*RPC) SendConsensus

func (_m *RPC) SendConsensus(dest uint64, msg *orderer.ConsensusRequest) error

SendConsensus provides a mock function with given fields: dest, msg

func (*RPC) SendSubmit

func (_m *RPC) SendSubmit(dest uint64, request *orderer.SubmitRequest) error

SendSubmit provides a mock function with given fields: dest, request

type ReceiverGetter

ReceiverGetter is an autogenerated mock type for the ReceiverGetter type

type ReceiverGetter struct {
    mock.Mock
}

func (*ReceiverGetter) ReceiverByChain

func (_m *ReceiverGetter) ReceiverByChain(channelID string) smartbft.MessageReceiver

ReceiverByChain provides a mock function with given fields: channelID

type Sequencer

Sequencer is an autogenerated mock type for the Sequencer type

type Sequencer struct {
    mock.Mock
}

func (*Sequencer) Sequence

func (_m *Sequencer) Sequence() uint64

Sequence provides a mock function with given fields:

type SignerSerializer

SignerSerializer is an autogenerated mock type for the SignerSerializer type

type SignerSerializer struct {
    mock.Mock
}

func (*SignerSerializer) Serialize

func (_m *SignerSerializer) Serialize() ([]byte, error)

Serialize provides a mock function with given fields:

func (*SignerSerializer) Sign

func (_m *SignerSerializer) Sign(message []byte) ([]byte, error)

Sign provides a mock function with given fields: message