Documentation
¶
Overview ¶
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Index ¶
- type Channel
- func (fake *Channel) Execute(request channel.Request, options ...channel.RequestOption) (channel.Response, error)
- func (fake *Channel) ExecuteArgsForCall(i int) (channel.Request, []channel.RequestOption)
- func (fake *Channel) ExecuteCallCount() int
- func (fake *Channel) ExecuteReturns(result1 channel.Response, result2 error)
- func (fake *Channel) ExecuteReturnsOnCall(i int, result1 channel.Response, result2 error)
- func (fake *Channel) Invocations() map[string][][]interface{}
- func (fake *Channel) InvokeHandler(handler invoke.Handler, request channel.Request, ...) (channel.Response, error)
- func (fake *Channel) InvokeHandlerArgsForCall(i int) (invoke.Handler, channel.Request, []channel.RequestOption)
- func (fake *Channel) InvokeHandlerCallCount() int
- func (fake *Channel) InvokeHandlerReturns(result1 channel.Response, result2 error)
- func (fake *Channel) InvokeHandlerReturnsOnCall(i int, result1 channel.Response, result2 error)
- func (fake *Channel) Query(request channel.Request, options ...channel.RequestOption) (channel.Response, error)
- func (fake *Channel) QueryArgsForCall(i int) (channel.Request, []channel.RequestOption)
- func (fake *Channel) QueryCallCount() int
- func (fake *Channel) QueryReturns(result1 channel.Response, result2 error)
- func (fake *Channel) QueryReturnsOnCall(i int, result1 channel.Response, result2 error)
- func (fake *Channel) RegisterChaincodeEvent(chainCodeID string, eventFilter string) (fab.Registration, <-chan *fab.CCEvent, error)
- func (fake *Channel) RegisterChaincodeEventArgsForCall(i int) (string, string)
- func (fake *Channel) RegisterChaincodeEventCallCount() int
- func (fake *Channel) RegisterChaincodeEventReturns(result1 fab.Registration, result2 <-chan *fab.CCEvent, result3 error)
- func (fake *Channel) RegisterChaincodeEventReturnsOnCall(i int, result1 fab.Registration, result2 <-chan *fab.CCEvent, result3 error)
- func (fake *Channel) UnregisterChaincodeEvent(registration fab.Registration)
- func (fake *Channel) UnregisterChaincodeEventArgsForCall(i int) fab.Registration
- func (fake *Channel) UnregisterChaincodeEventCallCount() int
- type Factory
- func (fake *Factory) Channel() (fabric.Channel, error)
- func (fake *Factory) ChannelCallCount() int
- func (fake *Factory) ChannelReturns(result1 fabric.Channel, result2 error)
- func (fake *Factory) ChannelReturnsOnCall(i int, result1 fabric.Channel, result2 error)
- func (fake *Factory) Event() (fabric.Event, error)
- func (fake *Factory) EventCallCount() int
- func (fake *Factory) EventReturns(result1 fabric.Event, result2 error)
- func (fake *Factory) EventReturnsOnCall(i int, result1 fabric.Event, result2 error)
- func (fake *Factory) Invocations() map[string][][]interface{}
- func (fake *Factory) Ledger() (fabric.Ledger, error)
- func (fake *Factory) LedgerCallCount() int
- func (fake *Factory) LedgerReturns(result1 fabric.Ledger, result2 error)
- func (fake *Factory) LedgerReturnsOnCall(i int, result1 fabric.Ledger, result2 error)
- func (fake *Factory) MSP() (fabric.MSP, error)
- func (fake *Factory) MSPCallCount() int
- func (fake *Factory) MSPReturns(result1 fabric.MSP, result2 error)
- func (fake *Factory) MSPReturnsOnCall(i int, result1 fabric.MSP, result2 error)
- func (fake *Factory) ResourceManagement() (fabric.ResourceManagement, error)
- func (fake *Factory) ResourceManagementCallCount() int
- func (fake *Factory) ResourceManagementReturns(result1 fabric.ResourceManagement, result2 error)
- func (fake *Factory) ResourceManagementReturnsOnCall(i int, result1 fabric.ResourceManagement, result2 error)
- func (fake *Factory) SDK() (fabric.SDK, error)
- func (fake *Factory) SDKCallCount() int
- func (fake *Factory) SDKReturns(result1 fabric.SDK, result2 error)
- func (fake *Factory) SDKReturnsOnCall(i int, result1 fabric.SDK, result2 error)
- type MockResponseBody
- type MockTransport
- func (m *MockTransport) RoundTrip(req *http.Request) (*http.Response, error)
- func (m *MockTransport) WithGetError(err error) *MockTransport
- func (m *MockTransport) WithGetResponse(resp *http.Response) *MockTransport
- func (m *MockTransport) WithPostError(err error) *MockTransport
- func (m *MockTransport) WithPostResponse(resp *http.Response) *MockTransport
- type Reader
- type Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Channel ¶
type Channel struct {
ExecuteStub func(request channel.Request, options ...channel.RequestOption) (channel.Response, error)
InvokeHandlerStub func(handler invoke.Handler, request channel.Request, options ...channel.RequestOption) (channel.Response, error)
QueryStub func(request channel.Request, options ...channel.RequestOption) (channel.Response, error)
RegisterChaincodeEventStub func(chainCodeID string, eventFilter string) (fab.Registration, <-chan *fab.CCEvent, error)
UnregisterChaincodeEventStub func(registration fab.Registration)
// contains filtered or unexported fields
}
func (*Channel) ExecuteArgsForCall ¶
func (*Channel) ExecuteCallCount ¶
func (*Channel) ExecuteReturns ¶
func (*Channel) ExecuteReturnsOnCall ¶
func (*Channel) Invocations ¶
func (*Channel) InvokeHandler ¶
func (*Channel) InvokeHandlerArgsForCall ¶
func (*Channel) InvokeHandlerCallCount ¶
func (*Channel) InvokeHandlerReturns ¶
func (*Channel) InvokeHandlerReturnsOnCall ¶
func (*Channel) QueryArgsForCall ¶
func (*Channel) QueryCallCount ¶
func (*Channel) QueryReturns ¶
func (*Channel) QueryReturnsOnCall ¶
func (*Channel) RegisterChaincodeEvent ¶
func (*Channel) RegisterChaincodeEventArgsForCall ¶
func (*Channel) RegisterChaincodeEventCallCount ¶
func (*Channel) RegisterChaincodeEventReturns ¶
func (*Channel) RegisterChaincodeEventReturnsOnCall ¶
func (*Channel) UnregisterChaincodeEvent ¶
func (fake *Channel) UnregisterChaincodeEvent(registration fab.Registration)
func (*Channel) UnregisterChaincodeEventArgsForCall ¶
func (fake *Channel) UnregisterChaincodeEventArgsForCall(i int) fab.Registration
func (*Channel) UnregisterChaincodeEventCallCount ¶
type Factory ¶
type Factory struct {
SDKStub func() (fabric.SDK, error)
ChannelStub func() (fabric.Channel, error)
EventStub func() (fabric.Event, error)
LedgerStub func() (fabric.Ledger, error)
ResourceManagementStub func() (fabric.ResourceManagement, error)
MSPStub func() (fabric.MSP, error)
// contains filtered or unexported fields
}
func (*Factory) ChannelCallCount ¶
func (*Factory) ChannelReturns ¶
func (*Factory) ChannelReturnsOnCall ¶
func (*Factory) EventCallCount ¶
func (*Factory) EventReturns ¶
func (*Factory) EventReturnsOnCall ¶
func (*Factory) Invocations ¶
func (*Factory) LedgerCallCount ¶
func (*Factory) LedgerReturns ¶
func (*Factory) LedgerReturnsOnCall ¶
func (*Factory) MSPCallCount ¶
func (*Factory) MSPReturnsOnCall ¶
func (*Factory) ResourceManagement ¶
func (fake *Factory) ResourceManagement() (fabric.ResourceManagement, error)
func (*Factory) ResourceManagementCallCount ¶
func (*Factory) ResourceManagementReturns ¶
func (fake *Factory) ResourceManagementReturns(result1 fabric.ResourceManagement, result2 error)
func (*Factory) ResourceManagementReturnsOnCall ¶
func (fake *Factory) ResourceManagementReturnsOnCall(i int, result1 fabric.ResourceManagement, result2 error)
func (*Factory) SDKCallCount ¶
type MockResponseBody ¶
MockResponseBody implements a mock io.ReadCloser
func NewResponseBody ¶
func NewResponseBody(content []byte) *MockResponseBody
NewResponseBody returns a new mock response body
func (*MockResponseBody) Close ¶
func (m *MockResponseBody) Close() error
Close mocks out the Close func
type MockTransport ¶
type MockTransport struct {
GetResponse *http.Response
GetErr error
PostResponse *http.Response
PostErr error
}
MockTransport implements a mock HTTP transport
func (*MockTransport) WithGetError ¶
func (m *MockTransport) WithGetError(err error) *MockTransport
WithGetError injects an error
func (*MockTransport) WithGetResponse ¶
func (m *MockTransport) WithGetResponse(resp *http.Response) *MockTransport
WithGetResponse sets the mock response for a Get
func (*MockTransport) WithPostError ¶
func (m *MockTransport) WithPostError(err error) *MockTransport
WithPostError injects an error
func (*MockTransport) WithPostResponse ¶
func (m *MockTransport) WithPostResponse(resp *http.Response) *MockTransport
WithPostResponse sets the mock response for a Post
type Reader ¶
type Reader struct {
Bytes []byte
}
Reader provides a byte array from which the reader reads
Click to show internal directories.
Click to hide internal directories.