mockfabric

package
v0.9.19 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IdentityClient

type IdentityClient struct {
	mock.Mock
}

IdentityClient is an autogenerated mock type for the IdentityClient type

func NewIdentityClient added in v0.9.18

func NewIdentityClient(t mockConstructorTestingTNewIdentityClient) *IdentityClient

NewIdentityClient creates a new instance of IdentityClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*IdentityClient) AddSignerUpdateListener added in v0.9.15

func (_m *IdentityClient) AddSignerUpdateListener(_a0 client.SignerUpdateListener)

AddSignerUpdateListener provides a mock function with given fields: _a0

func (*IdentityClient) GetClientOrg

func (_m *IdentityClient) GetClientOrg() string

GetClientOrg provides a mock function with given fields:

func (*IdentityClient) GetSigningIdentity

func (_m *IdentityClient) GetSigningIdentity(name string) (msp.SigningIdentity, error)

GetSigningIdentity provides a mock function with given fields: name

type RPCClient

type RPCClient struct {
	mock.Mock
}

RPCClient is an autogenerated mock type for the RPCClient type

func NewRPCClient added in v0.9.18

func NewRPCClient(t mockConstructorTestingTNewRPCClient) *RPCClient

NewRPCClient creates a new instance of RPCClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*RPCClient) Close

func (_m *RPCClient) Close() error

Close provides a mock function with given fields:

func (*RPCClient) Invoke

func (_m *RPCClient) Invoke(channelID string, signer string, chaincodeName string, method string, args []string, transientMap map[string]string, isInit bool) (*client.TxReceipt, error)

Invoke provides a mock function with given fields: channelID, signer, chaincodeName, method, args, transientMap, isInit

func (*RPCClient) Query

func (_m *RPCClient) Query(channelID string, signer string, chaincodeName string, method string, args []string, strongread bool) ([]byte, error)

Query provides a mock function with given fields: channelID, signer, chaincodeName, method, args, strongread

func (*RPCClient) QueryBlock added in v0.9.6

func (_m *RPCClient) QueryBlock(channelID string, signer string, blocknumber uint64, blockhash []byte) (*utils.RawBlock, *utils.Block, error)

QueryBlock provides a mock function with given fields: channelID, signer, blocknumber, blockhash

func (*RPCClient) QueryBlockByTxID added in v0.9.18

func (_m *RPCClient) QueryBlockByTxID(channelID string, signer string, txID string) (*utils.RawBlock, *utils.Block, error)

QueryBlockByTxID provides a mock function with given fields: channelID, signer, txID

func (*RPCClient) QueryChainInfo

func (_m *RPCClient) QueryChainInfo(channelID string, signer string) (*fab.BlockchainInfoResponse, error)

QueryChainInfo provides a mock function with given fields: channelID, signer

func (*RPCClient) QueryTransaction added in v0.9.4

func (_m *RPCClient) QueryTransaction(channelID string, signer string, txID string) (map[string]interface{}, error)

QueryTransaction provides a mock function with given fields: channelID, signer, txID

func (*RPCClient) SubscribeEvent

func (_m *RPCClient) SubscribeEvent(subInfo *api.SubscriptionInfo, since uint64) (*client.RegistrationWrapper, <-chan *fab.BlockEvent, <-chan *fab.CCEvent, error)

SubscribeEvent provides a mock function with given fields: subInfo, since

func (*RPCClient) Unregister

func (_m *RPCClient) Unregister(_a0 *client.RegistrationWrapper)

Unregister provides a mock function with given fields: _a0

Jump to

Keyboard shortcuts

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