mock

package
v0.0.0-...-9488465 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ABServer

type ABServer struct {
	SendStub func(*orderer.BroadcastResponse) error

	RecvStub func() (*common.Envelope, error)

	SetHeaderStub func(metadata.MD) error

	SendHeaderStub func(metadata.MD) error

	SetTrailerStub func(metadata.MD)

	ContextStub func() context.Context

	SendMsgStub func(m interface{}) error

	RecvMsgStub func(m interface{}) error
	// contains filtered or unexported fields
}

func (*ABServer) Context

func (fake *ABServer) Context() context.Context

func (*ABServer) ContextCallCount

func (fake *ABServer) ContextCallCount() int

func (*ABServer) ContextReturns

func (fake *ABServer) ContextReturns(result1 context.Context)

func (*ABServer) ContextReturnsOnCall

func (fake *ABServer) ContextReturnsOnCall(i int, result1 context.Context)

func (*ABServer) Invocations

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

func (*ABServer) Recv

func (fake *ABServer) Recv() (*common.Envelope, error)

func (*ABServer) RecvCallCount

func (fake *ABServer) RecvCallCount() int

func (*ABServer) RecvMsg

func (fake *ABServer) RecvMsg(m interface{}) error

func (*ABServer) RecvMsgArgsForCall

func (fake *ABServer) RecvMsgArgsForCall(i int) interface{}

func (*ABServer) RecvMsgCallCount

func (fake *ABServer) RecvMsgCallCount() int

func (*ABServer) RecvMsgReturns

func (fake *ABServer) RecvMsgReturns(result1 error)

func (*ABServer) RecvMsgReturnsOnCall

func (fake *ABServer) RecvMsgReturnsOnCall(i int, result1 error)

func (*ABServer) RecvReturns

func (fake *ABServer) RecvReturns(result1 *common.Envelope, result2 error)

func (*ABServer) RecvReturnsOnCall

func (fake *ABServer) RecvReturnsOnCall(i int, result1 *common.Envelope, result2 error)

func (*ABServer) Send

func (fake *ABServer) Send(arg1 *orderer.BroadcastResponse) error

func (*ABServer) SendArgsForCall

func (fake *ABServer) SendArgsForCall(i int) *orderer.BroadcastResponse

func (*ABServer) SendCallCount

func (fake *ABServer) SendCallCount() int

func (*ABServer) SendHeader

func (fake *ABServer) SendHeader(arg1 metadata.MD) error

func (*ABServer) SendHeaderArgsForCall

func (fake *ABServer) SendHeaderArgsForCall(i int) metadata.MD

func (*ABServer) SendHeaderCallCount

func (fake *ABServer) SendHeaderCallCount() int

func (*ABServer) SendHeaderReturns

func (fake *ABServer) SendHeaderReturns(result1 error)

func (*ABServer) SendHeaderReturnsOnCall

func (fake *ABServer) SendHeaderReturnsOnCall(i int, result1 error)

func (*ABServer) SendMsg

func (fake *ABServer) SendMsg(m interface{}) error

func (*ABServer) SendMsgArgsForCall

func (fake *ABServer) SendMsgArgsForCall(i int) interface{}

func (*ABServer) SendMsgCallCount

func (fake *ABServer) SendMsgCallCount() int

func (*ABServer) SendMsgReturns

func (fake *ABServer) SendMsgReturns(result1 error)

func (*ABServer) SendMsgReturnsOnCall

func (fake *ABServer) SendMsgReturnsOnCall(i int, result1 error)

func (*ABServer) SendReturns

func (fake *ABServer) SendReturns(result1 error)

func (*ABServer) SendReturnsOnCall

func (fake *ABServer) SendReturnsOnCall(i int, result1 error)

func (*ABServer) SetHeader

func (fake *ABServer) SetHeader(arg1 metadata.MD) error

func (*ABServer) SetHeaderArgsForCall

func (fake *ABServer) SetHeaderArgsForCall(i int) metadata.MD

func (*ABServer) SetHeaderCallCount

func (fake *ABServer) SetHeaderCallCount() int

func (*ABServer) SetHeaderReturns

func (fake *ABServer) SetHeaderReturns(result1 error)

func (*ABServer) SetHeaderReturnsOnCall

func (fake *ABServer) SetHeaderReturnsOnCall(i int, result1 error)

func (*ABServer) SetTrailer

func (fake *ABServer) SetTrailer(arg1 metadata.MD)

func (*ABServer) SetTrailerArgsForCall

func (fake *ABServer) SetTrailerArgsForCall(i int) metadata.MD

func (*ABServer) SetTrailerCallCount

func (fake *ABServer) SetTrailerCallCount() int

type ChannelSupport

type ChannelSupport struct {
	ClassifyMsgStub func(*common.ChannelHeader) msgprocessor.Classification

	ConfigureStub func(*common.Envelope, uint64) error

	OrderStub func(*common.Envelope, uint64) error

	ProcessConfigMsgStub func(*common.Envelope) (*common.Envelope, uint64, error)

	ProcessConfigUpdateMsgStub func(*common.Envelope) (*common.Envelope, uint64, error)

	ProcessNormalMsgStub func(*common.Envelope) (uint64, error)

	WaitReadyStub func() error
	// contains filtered or unexported fields
}

func (*ChannelSupport) ClassifyMsg

func (*ChannelSupport) ClassifyMsgArgsForCall

func (fake *ChannelSupport) ClassifyMsgArgsForCall(i int) *common.ChannelHeader

func (*ChannelSupport) ClassifyMsgCallCount

func (fake *ChannelSupport) ClassifyMsgCallCount() int

func (*ChannelSupport) ClassifyMsgCalls

func (fake *ChannelSupport) ClassifyMsgCalls(stub func(*common.ChannelHeader) msgprocessor.Classification)

func (*ChannelSupport) ClassifyMsgReturns

func (fake *ChannelSupport) ClassifyMsgReturns(result1 msgprocessor.Classification)

func (*ChannelSupport) ClassifyMsgReturnsOnCall

func (fake *ChannelSupport) ClassifyMsgReturnsOnCall(i int, result1 msgprocessor.Classification)

func (*ChannelSupport) Configure

func (fake *ChannelSupport) Configure(arg1 *common.Envelope, arg2 uint64) error

func (*ChannelSupport) ConfigureArgsForCall

func (fake *ChannelSupport) ConfigureArgsForCall(i int) (*common.Envelope, uint64)

func (*ChannelSupport) ConfigureCallCount

func (fake *ChannelSupport) ConfigureCallCount() int

func (*ChannelSupport) ConfigureCalls

func (fake *ChannelSupport) ConfigureCalls(stub func(*common.Envelope, uint64) error)

func (*ChannelSupport) ConfigureReturns

func (fake *ChannelSupport) ConfigureReturns(result1 error)

func (*ChannelSupport) ConfigureReturnsOnCall

func (fake *ChannelSupport) ConfigureReturnsOnCall(i int, result1 error)

func (*ChannelSupport) Invocations

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

func (*ChannelSupport) Order

func (fake *ChannelSupport) Order(arg1 *common.Envelope, arg2 uint64) error

func (*ChannelSupport) OrderArgsForCall

func (fake *ChannelSupport) OrderArgsForCall(i int) (*common.Envelope, uint64)

func (*ChannelSupport) OrderCallCount

func (fake *ChannelSupport) OrderCallCount() int

func (*ChannelSupport) OrderCalls

func (fake *ChannelSupport) OrderCalls(stub func(*common.Envelope, uint64) error)

func (*ChannelSupport) OrderReturns

func (fake *ChannelSupport) OrderReturns(result1 error)

func (*ChannelSupport) OrderReturnsOnCall

func (fake *ChannelSupport) OrderReturnsOnCall(i int, result1 error)

func (*ChannelSupport) ProcessConfigMsg

func (fake *ChannelSupport) ProcessConfigMsg(arg1 *common.Envelope) (*common.Envelope, uint64, error)

func (*ChannelSupport) ProcessConfigMsgArgsForCall

func (fake *ChannelSupport) ProcessConfigMsgArgsForCall(i int) *common.Envelope

func (*ChannelSupport) ProcessConfigMsgCallCount

func (fake *ChannelSupport) ProcessConfigMsgCallCount() int

func (*ChannelSupport) ProcessConfigMsgCalls

func (fake *ChannelSupport) ProcessConfigMsgCalls(stub func(*common.Envelope) (*common.Envelope, uint64, error))

func (*ChannelSupport) ProcessConfigMsgReturns

func (fake *ChannelSupport) ProcessConfigMsgReturns(result1 *common.Envelope, result2 uint64, result3 error)

func (*ChannelSupport) ProcessConfigMsgReturnsOnCall

func (fake *ChannelSupport) ProcessConfigMsgReturnsOnCall(i int, result1 *common.Envelope, result2 uint64, result3 error)

func (*ChannelSupport) ProcessConfigUpdateMsg

func (fake *ChannelSupport) ProcessConfigUpdateMsg(arg1 *common.Envelope) (*common.Envelope, uint64, error)

func (*ChannelSupport) ProcessConfigUpdateMsgArgsForCall

func (fake *ChannelSupport) ProcessConfigUpdateMsgArgsForCall(i int) *common.Envelope

func (*ChannelSupport) ProcessConfigUpdateMsgCallCount

func (fake *ChannelSupport) ProcessConfigUpdateMsgCallCount() int

func (*ChannelSupport) ProcessConfigUpdateMsgCalls

func (fake *ChannelSupport) ProcessConfigUpdateMsgCalls(stub func(*common.Envelope) (*common.Envelope, uint64, error))

func (*ChannelSupport) ProcessConfigUpdateMsgReturns

func (fake *ChannelSupport) ProcessConfigUpdateMsgReturns(result1 *common.Envelope, result2 uint64, result3 error)

func (*ChannelSupport) ProcessConfigUpdateMsgReturnsOnCall

func (fake *ChannelSupport) ProcessConfigUpdateMsgReturnsOnCall(i int, result1 *common.Envelope, result2 uint64, result3 error)

func (*ChannelSupport) ProcessNormalMsg

func (fake *ChannelSupport) ProcessNormalMsg(arg1 *common.Envelope) (uint64, error)

func (*ChannelSupport) ProcessNormalMsgArgsForCall

func (fake *ChannelSupport) ProcessNormalMsgArgsForCall(i int) *common.Envelope

func (*ChannelSupport) ProcessNormalMsgCallCount

func (fake *ChannelSupport) ProcessNormalMsgCallCount() int

func (*ChannelSupport) ProcessNormalMsgCalls

func (fake *ChannelSupport) ProcessNormalMsgCalls(stub func(*common.Envelope) (uint64, error))

func (*ChannelSupport) ProcessNormalMsgReturns

func (fake *ChannelSupport) ProcessNormalMsgReturns(result1 uint64, result2 error)

func (*ChannelSupport) ProcessNormalMsgReturnsOnCall

func (fake *ChannelSupport) ProcessNormalMsgReturnsOnCall(i int, result1 uint64, result2 error)

func (*ChannelSupport) WaitReady

func (fake *ChannelSupport) WaitReady() error

func (*ChannelSupport) WaitReadyCallCount

func (fake *ChannelSupport) WaitReadyCallCount() int

func (*ChannelSupport) WaitReadyCalls

func (fake *ChannelSupport) WaitReadyCalls(stub func() error)

func (*ChannelSupport) WaitReadyReturns

func (fake *ChannelSupport) WaitReadyReturns(result1 error)

func (*ChannelSupport) WaitReadyReturnsOnCall

func (fake *ChannelSupport) WaitReadyReturnsOnCall(i int, result1 error)

type ChannelSupportRegistrar

type ChannelSupportRegistrar struct {
	BroadcastChannelSupportStub func(*common.Envelope) (*common.ChannelHeader, bool, broadcast.ChannelSupport, error)
	// contains filtered or unexported fields
}

func (*ChannelSupportRegistrar) BroadcastChannelSupport

func (fake *ChannelSupportRegistrar) BroadcastChannelSupport(arg1 *common.Envelope) (*common.ChannelHeader, bool, broadcast.ChannelSupport, error)

func (*ChannelSupportRegistrar) BroadcastChannelSupportArgsForCall

func (fake *ChannelSupportRegistrar) BroadcastChannelSupportArgsForCall(i int) *common.Envelope

func (*ChannelSupportRegistrar) BroadcastChannelSupportCallCount

func (fake *ChannelSupportRegistrar) BroadcastChannelSupportCallCount() int

func (*ChannelSupportRegistrar) BroadcastChannelSupportCalls

func (fake *ChannelSupportRegistrar) BroadcastChannelSupportCalls(stub func(*common.Envelope) (*common.ChannelHeader, bool, broadcast.ChannelSupport, error))

func (*ChannelSupportRegistrar) BroadcastChannelSupportReturns

func (fake *ChannelSupportRegistrar) BroadcastChannelSupportReturns(result1 *common.ChannelHeader, result2 bool, result3 broadcast.ChannelSupport, result4 error)

func (*ChannelSupportRegistrar) BroadcastChannelSupportReturnsOnCall

func (fake *ChannelSupportRegistrar) BroadcastChannelSupportReturnsOnCall(i int, result1 *common.ChannelHeader, result2 bool, result3 broadcast.ChannelSupport, result4 error)

func (*ChannelSupportRegistrar) Invocations

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

type MetricsCounter

type MetricsCounter struct {
	WithStub func(labelValues ...string) metrics.Counter

	AddStub func(delta float64)
	// contains filtered or unexported fields
}

func (*MetricsCounter) Add

func (fake *MetricsCounter) Add(delta float64)

func (*MetricsCounter) AddArgsForCall

func (fake *MetricsCounter) AddArgsForCall(i int) float64

func (*MetricsCounter) AddCallCount

func (fake *MetricsCounter) AddCallCount() int

func (*MetricsCounter) Invocations

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

func (*MetricsCounter) With

func (fake *MetricsCounter) With(labelValues ...string) metrics.Counter

func (*MetricsCounter) WithArgsForCall

func (fake *MetricsCounter) WithArgsForCall(i int) []string

func (*MetricsCounter) WithCallCount

func (fake *MetricsCounter) WithCallCount() int

func (*MetricsCounter) WithReturns

func (fake *MetricsCounter) WithReturns(result1 metrics.Counter)

func (*MetricsCounter) WithReturnsOnCall

func (fake *MetricsCounter) WithReturnsOnCall(i int, result1 metrics.Counter)

type MetricsHistogram

type MetricsHistogram struct {
	WithStub func(labelValues ...string) metrics.Histogram

	ObserveStub func(value float64)
	// contains filtered or unexported fields
}

func (*MetricsHistogram) Invocations

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

func (*MetricsHistogram) Observe

func (fake *MetricsHistogram) Observe(value float64)

func (*MetricsHistogram) ObserveArgsForCall

func (fake *MetricsHistogram) ObserveArgsForCall(i int) float64

func (*MetricsHistogram) ObserveCallCount

func (fake *MetricsHistogram) ObserveCallCount() int

func (*MetricsHistogram) With

func (fake *MetricsHistogram) With(labelValues ...string) metrics.Histogram

func (*MetricsHistogram) WithArgsForCall

func (fake *MetricsHistogram) WithArgsForCall(i int) []string

func (*MetricsHistogram) WithCallCount

func (fake *MetricsHistogram) WithCallCount() int

func (*MetricsHistogram) WithReturns

func (fake *MetricsHistogram) WithReturns(result1 metrics.Histogram)

func (*MetricsHistogram) WithReturnsOnCall

func (fake *MetricsHistogram) WithReturnsOnCall(i int, result1 metrics.Histogram)

type MetricsProvider

type MetricsProvider struct {
	NewCounterStub func(metrics.CounterOpts) metrics.Counter

	NewGaugeStub func(metrics.GaugeOpts) metrics.Gauge

	NewHistogramStub func(metrics.HistogramOpts) metrics.Histogram
	// contains filtered or unexported fields
}

func (*MetricsProvider) Invocations

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

func (*MetricsProvider) NewCounter

func (fake *MetricsProvider) NewCounter(arg1 metrics.CounterOpts) metrics.Counter

func (*MetricsProvider) NewCounterArgsForCall

func (fake *MetricsProvider) NewCounterArgsForCall(i int) metrics.CounterOpts

func (*MetricsProvider) NewCounterCallCount

func (fake *MetricsProvider) NewCounterCallCount() int

func (*MetricsProvider) NewCounterReturns

func (fake *MetricsProvider) NewCounterReturns(result1 metrics.Counter)

func (*MetricsProvider) NewCounterReturnsOnCall

func (fake *MetricsProvider) NewCounterReturnsOnCall(i int, result1 metrics.Counter)

func (*MetricsProvider) NewGauge

func (fake *MetricsProvider) NewGauge(arg1 metrics.GaugeOpts) metrics.Gauge

func (*MetricsProvider) NewGaugeArgsForCall

func (fake *MetricsProvider) NewGaugeArgsForCall(i int) metrics.GaugeOpts

func (*MetricsProvider) NewGaugeCallCount

func (fake *MetricsProvider) NewGaugeCallCount() int

func (*MetricsProvider) NewGaugeReturns

func (fake *MetricsProvider) NewGaugeReturns(result1 metrics.Gauge)

func (*MetricsProvider) NewGaugeReturnsOnCall

func (fake *MetricsProvider) NewGaugeReturnsOnCall(i int, result1 metrics.Gauge)

func (*MetricsProvider) NewHistogram

func (fake *MetricsProvider) NewHistogram(arg1 metrics.HistogramOpts) metrics.Histogram

func (*MetricsProvider) NewHistogramArgsForCall

func (fake *MetricsProvider) NewHistogramArgsForCall(i int) metrics.HistogramOpts

func (*MetricsProvider) NewHistogramCallCount

func (fake *MetricsProvider) NewHistogramCallCount() int

func (*MetricsProvider) NewHistogramReturns

func (fake *MetricsProvider) NewHistogramReturns(result1 metrics.Histogram)

func (*MetricsProvider) NewHistogramReturnsOnCall

func (fake *MetricsProvider) NewHistogramReturnsOnCall(i int, result1 metrics.Histogram)

Jump to

Keyboard shortcuts

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