mocks

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2020 License: Apache-2.0 Imports: 6 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.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DCASClient

type DCASClient struct {
	PutStub func(ns, coll string, value []byte) (string, error)

	PutMultipleValuesStub func(ns, coll string, values [][]byte) ([]string, error)

	DeleteStub func(ns, coll string, keys ...string) error

	GetStub func(ns, coll, key string) ([]byte, error)

	GetMultipleKeysStub func(ns, coll string, keys ...string) ([][]byte, error)

	QueryStub func(ns, coll, query string) (commonledger.ResultsIterator, error)
	// contains filtered or unexported fields
}

func (*DCASClient) Delete

func (fake *DCASClient) Delete(ns string, coll string, keys ...string) error

func (*DCASClient) DeleteArgsForCall

func (fake *DCASClient) DeleteArgsForCall(i int) (string, string, []string)

func (*DCASClient) DeleteCallCount

func (fake *DCASClient) DeleteCallCount() int

func (*DCASClient) DeleteReturns

func (fake *DCASClient) DeleteReturns(result1 error)

func (*DCASClient) DeleteReturnsOnCall

func (fake *DCASClient) DeleteReturnsOnCall(i int, result1 error)

func (*DCASClient) Get

func (fake *DCASClient) Get(ns string, coll string, key string) ([]byte, error)

func (*DCASClient) GetArgsForCall

func (fake *DCASClient) GetArgsForCall(i int) (string, string, string)

func (*DCASClient) GetCallCount

func (fake *DCASClient) GetCallCount() int

func (*DCASClient) GetMultipleKeys

func (fake *DCASClient) GetMultipleKeys(ns string, coll string, keys ...string) ([][]byte, error)

func (*DCASClient) GetMultipleKeysArgsForCall

func (fake *DCASClient) GetMultipleKeysArgsForCall(i int) (string, string, []string)

func (*DCASClient) GetMultipleKeysCallCount

func (fake *DCASClient) GetMultipleKeysCallCount() int

func (*DCASClient) GetMultipleKeysReturns

func (fake *DCASClient) GetMultipleKeysReturns(result1 [][]byte, result2 error)

func (*DCASClient) GetMultipleKeysReturnsOnCall

func (fake *DCASClient) GetMultipleKeysReturnsOnCall(i int, result1 [][]byte, result2 error)

func (*DCASClient) GetReturns

func (fake *DCASClient) GetReturns(result1 []byte, result2 error)

func (*DCASClient) GetReturnsOnCall

func (fake *DCASClient) GetReturnsOnCall(i int, result1 []byte, result2 error)

func (*DCASClient) Invocations

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

func (*DCASClient) Put

func (fake *DCASClient) Put(ns string, coll string, value []byte) (string, error)

func (*DCASClient) PutArgsForCall

func (fake *DCASClient) PutArgsForCall(i int) (string, string, []byte)

func (*DCASClient) PutCallCount

func (fake *DCASClient) PutCallCount() int

func (*DCASClient) PutMultipleValues

func (fake *DCASClient) PutMultipleValues(ns string, coll string, values [][]byte) ([]string, error)

func (*DCASClient) PutMultipleValuesArgsForCall

func (fake *DCASClient) PutMultipleValuesArgsForCall(i int) (string, string, [][]byte)

func (*DCASClient) PutMultipleValuesCallCount

func (fake *DCASClient) PutMultipleValuesCallCount() int

func (*DCASClient) PutMultipleValuesReturns

func (fake *DCASClient) PutMultipleValuesReturns(result1 []string, result2 error)

func (*DCASClient) PutMultipleValuesReturnsOnCall

func (fake *DCASClient) PutMultipleValuesReturnsOnCall(i int, result1 []string, result2 error)

func (*DCASClient) PutReturns

func (fake *DCASClient) PutReturns(result1 string, result2 error)

func (*DCASClient) PutReturnsOnCall

func (fake *DCASClient) PutReturnsOnCall(i int, result1 string, result2 error)

func (*DCASClient) Query

func (fake *DCASClient) Query(ns string, coll string, query string) (commonledger.ResultsIterator, error)

func (*DCASClient) QueryArgsForCall

func (fake *DCASClient) QueryArgsForCall(i int) (string, string, string)

func (*DCASClient) QueryCallCount

func (fake *DCASClient) QueryCallCount() int

func (*DCASClient) QueryReturns

func (fake *DCASClient) QueryReturns(result1 commonledger.ResultsIterator, result2 error)

func (*DCASClient) QueryReturnsOnCall

func (fake *DCASClient) QueryReturnsOnCall(i int, result1 commonledger.ResultsIterator, result2 error)

type DCASClientProvider

type DCASClientProvider struct {
	ForChannelStub func(channelID string) (dcasclient.DCAS, error)
	// contains filtered or unexported fields
}

func (*DCASClientProvider) ForChannel

func (fake *DCASClientProvider) ForChannel(channelID string) (dcasclient.DCAS, error)

func (*DCASClientProvider) ForChannelArgsForCall

func (fake *DCASClientProvider) ForChannelArgsForCall(i int) string

func (*DCASClientProvider) ForChannelCallCount

func (fake *DCASClientProvider) ForChannelCallCount() int

func (*DCASClientProvider) ForChannelReturns

func (fake *DCASClientProvider) ForChannelReturns(result1 dcasclient.DCAS, result2 error)

func (*DCASClientProvider) ForChannelReturnsOnCall

func (fake *DCASClientProvider) ForChannelReturnsOnCall(i int, result1 dcasclient.DCAS, result2 error)

func (*DCASClientProvider) Invocations

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

type TxnService

type TxnService struct {
	EndorseStub func(req *api.Request) (resp *channel.Response, err error)

	EndorseAndCommitStub func(req *api.Request) (resp *channel.Response, err error)
	// contains filtered or unexported fields
}

func (*TxnService) Endorse

func (fake *TxnService) Endorse(req *api.Request) (resp *channel.Response, err error)

func (*TxnService) EndorseAndCommit

func (fake *TxnService) EndorseAndCommit(req *api.Request) (resp *channel.Response, err error)

func (*TxnService) EndorseAndCommitArgsForCall

func (fake *TxnService) EndorseAndCommitArgsForCall(i int) *api.Request

func (*TxnService) EndorseAndCommitCallCount

func (fake *TxnService) EndorseAndCommitCallCount() int

func (*TxnService) EndorseAndCommitReturns

func (fake *TxnService) EndorseAndCommitReturns(result1 *channel.Response, result2 error)

func (*TxnService) EndorseAndCommitReturnsOnCall

func (fake *TxnService) EndorseAndCommitReturnsOnCall(i int, result1 *channel.Response, result2 error)

func (*TxnService) EndorseArgsForCall

func (fake *TxnService) EndorseArgsForCall(i int) *api.Request

func (*TxnService) EndorseCallCount

func (fake *TxnService) EndorseCallCount() int

func (*TxnService) EndorseReturns

func (fake *TxnService) EndorseReturns(result1 *channel.Response, result2 error)

func (*TxnService) EndorseReturnsOnCall

func (fake *TxnService) EndorseReturnsOnCall(i int, result1 *channel.Response, result2 error)

func (*TxnService) Invocations

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

type TxnServiceProvider

type TxnServiceProvider struct {
	ForChannelStub func(channelID string) (txnapi.Service, error)
	// contains filtered or unexported fields
}

func (*TxnServiceProvider) ForChannel

func (fake *TxnServiceProvider) ForChannel(channelID string) (txnapi.Service, error)

func (*TxnServiceProvider) ForChannelArgsForCall

func (fake *TxnServiceProvider) ForChannelArgsForCall(i int) string

func (*TxnServiceProvider) ForChannelCallCount

func (fake *TxnServiceProvider) ForChannelCallCount() int

func (*TxnServiceProvider) ForChannelReturns

func (fake *TxnServiceProvider) ForChannelReturns(result1 txnapi.Service, result2 error)

func (*TxnServiceProvider) ForChannelReturnsOnCall

func (fake *TxnServiceProvider) ForChannelReturnsOnCall(i int, result1 txnapi.Service, result2 error)

func (*TxnServiceProvider) Invocations

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

Jump to

Keyboard shortcuts

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