fabric: github.com/hyperledger/fabric/orderer/common/server/mocks Index | Files

package mocks

import "github.com/hyperledger/fabric/orderer/common/server/mocks"

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Index

Package Files

chain_replicator.go factory.go health_checker.go signer_serializer.go

type ChainReplicator Uses

type ChainReplicator struct {
    mock.Mock
}

ChainReplicator is an autogenerated mock type for the ChainReplicator type

func (*ChainReplicator) ReplicateChains Uses

func (_m *ChainReplicator) ReplicateChains(lastConfigBlock *common.Block, chains []string) []string

ReplicateChains provides a mock function with given fields: lastConfigBlock, chains

type Factory Uses

type Factory struct {
    mock.Mock
}

Factory is an autogenerated mock type for the Factory type

func (*Factory) ChannelIDs Uses

func (_m *Factory) ChannelIDs() []string

ChannelIDs provides a mock function with given fields:

func (*Factory) Close Uses

func (_m *Factory) Close()

Close provides a mock function with given fields:

func (*Factory) GetOrCreate Uses

func (_m *Factory) GetOrCreate(chainID string) (blockledger.ReadWriter, error)

GetOrCreate provides a mock function with given fields: chainID

type HealthChecker Uses

type HealthChecker struct {
    RegisterCheckerStub func(string, healthz.HealthChecker) error
    // contains filtered or unexported fields
}

func (*HealthChecker) Invocations Uses

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

func (*HealthChecker) RegisterChecker Uses

func (fake *HealthChecker) RegisterChecker(arg1 string, arg2 healthz.HealthChecker) error

func (*HealthChecker) RegisterCheckerArgsForCall Uses

func (fake *HealthChecker) RegisterCheckerArgsForCall(i int) (string, healthz.HealthChecker)

func (*HealthChecker) RegisterCheckerCallCount Uses

func (fake *HealthChecker) RegisterCheckerCallCount() int

func (*HealthChecker) RegisterCheckerCalls Uses

func (fake *HealthChecker) RegisterCheckerCalls(stub func(string, healthz.HealthChecker) error)

func (*HealthChecker) RegisterCheckerReturns Uses

func (fake *HealthChecker) RegisterCheckerReturns(result1 error)

func (*HealthChecker) RegisterCheckerReturnsOnCall Uses

func (fake *HealthChecker) RegisterCheckerReturnsOnCall(i int, result1 error)

type SignerSerializer Uses

type SignerSerializer struct {
    SerializeStub func() ([]byte, error)

    SignStub func([]byte) ([]byte, error)
    // contains filtered or unexported fields
}

func (*SignerSerializer) Invocations Uses

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

func (*SignerSerializer) Serialize Uses

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

func (*SignerSerializer) SerializeCallCount Uses

func (fake *SignerSerializer) SerializeCallCount() int

func (*SignerSerializer) SerializeCalls Uses

func (fake *SignerSerializer) SerializeCalls(stub func() ([]byte, error))

func (*SignerSerializer) SerializeReturns Uses

func (fake *SignerSerializer) SerializeReturns(result1 []byte, result2 error)

func (*SignerSerializer) SerializeReturnsOnCall Uses

func (fake *SignerSerializer) SerializeReturnsOnCall(i int, result1 []byte, result2 error)

func (*SignerSerializer) Sign Uses

func (fake *SignerSerializer) Sign(arg1 []byte) ([]byte, error)

func (*SignerSerializer) SignArgsForCall Uses

func (fake *SignerSerializer) SignArgsForCall(i int) []byte

func (*SignerSerializer) SignCallCount Uses

func (fake *SignerSerializer) SignCallCount() int

func (*SignerSerializer) SignCalls Uses

func (fake *SignerSerializer) SignCalls(stub func([]byte) ([]byte, error))

func (*SignerSerializer) SignReturns Uses

func (fake *SignerSerializer) SignReturns(result1 []byte, result2 error)

func (*SignerSerializer) SignReturnsOnCall Uses

func (fake *SignerSerializer) SignReturnsOnCall(i int, result1 []byte, result2 error)

Package mocks imports 5 packages (graph). Updated 2019-12-18. Refresh now. Tools for package owners.