mock_types

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2019 License: MIT Imports: 5 Imported by: 0

README

How to generate mock code

mockgen github.com/aergoio/aergo/types AergoRPCServiceClient > mock_types.go

mockgen: https://github.com/golang/mock

Documentation

Overview

Package mock_types is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAergoRPCServiceClient

type MockAergoRPCServiceClient struct {
	// contains filtered or unexported fields
}

MockAergoRPCServiceClient is a mock of AergoRPCServiceClient interface

func NewMockAergoRPCServiceClient

func NewMockAergoRPCServiceClient(ctrl *gomock.Controller) *MockAergoRPCServiceClient

NewMockAergoRPCServiceClient creates a new mock instance

func (*MockAergoRPCServiceClient) Blockchain

Blockchain mocks base method

func (*MockAergoRPCServiceClient) CommitTX

CommitTX mocks base method

func (*MockAergoRPCServiceClient) CreateAccount

func (m *MockAergoRPCServiceClient) CreateAccount(arg0 context.Context, arg1 *types.Personal, arg2 ...grpc.CallOption) (*types.Account, error)

CreateAccount mocks base method

func (*MockAergoRPCServiceClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockAergoRPCServiceClient) ExportAccount

func (m *MockAergoRPCServiceClient) ExportAccount(arg0 context.Context, arg1 *types.Personal, arg2 ...grpc.CallOption) (*types.SingleBytes, error)

ExportAccount mocks base method

func (*MockAergoRPCServiceClient) GetABI

GetABI mocks base method

func (*MockAergoRPCServiceClient) GetAccounts

func (m *MockAergoRPCServiceClient) GetAccounts(arg0 context.Context, arg1 *types.Empty, arg2 ...grpc.CallOption) (*types.AccountList, error)

GetAccounts mocks base method

func (*MockAergoRPCServiceClient) GetBlock

func (m *MockAergoRPCServiceClient) GetBlock(arg0 context.Context, arg1 *types.SingleBytes, arg2 ...grpc.CallOption) (*types.Block, error)

GetBlock mocks base method

func (*MockAergoRPCServiceClient) GetBlockBody added in v0.11.0

GetBlockBody mocks base method

func (*MockAergoRPCServiceClient) GetBlockMetadata added in v0.11.0

func (m *MockAergoRPCServiceClient) GetBlockMetadata(arg0 context.Context, arg1 *types.SingleBytes, arg2 ...grpc.CallOption) (*types.BlockMetadata, error)

GetBlockMetadata mocks base method

func (*MockAergoRPCServiceClient) GetBlockTX

GetBlockTX mocks base method

func (*MockAergoRPCServiceClient) GetChainInfo added in v0.11.0

func (rpc *MockAergoRPCServiceClient) GetChainInfo(ctx context.Context, in *types.Empty, arg2 ...grpc.CallOption) (*types.ChainInfo, error)

GetChainInfo handles a getchaininfo RPC request.

func (*MockAergoRPCServiceClient) GetNameInfo added in v0.9.4

func (m *MockAergoRPCServiceClient) GetNameInfo(arg0 context.Context, arg1 *types.Name, arg2 ...grpc.CallOption) (*types.NameInfo, error)

GetNameInfo mocks base method

func (*MockAergoRPCServiceClient) GetPeers

func (m *MockAergoRPCServiceClient) GetPeers(arg0 context.Context, arg1 *types.Empty, arg2 ...grpc.CallOption) (*types.PeerList, error)

GetPeers mocks base method

func (*MockAergoRPCServiceClient) GetReceipt

func (m *MockAergoRPCServiceClient) GetReceipt(arg0 context.Context, arg1 *types.SingleBytes, arg2 ...grpc.CallOption) (*types.Receipt, error)

GetReceipt mocks base method

func (*MockAergoRPCServiceClient) GetStaking

func (m *MockAergoRPCServiceClient) GetStaking(arg0 context.Context, arg1 *types.SingleBytes, arg2 ...grpc.CallOption) (*types.Staking, error)

GetStaking mocks base method

func (*MockAergoRPCServiceClient) GetState

func (m *MockAergoRPCServiceClient) GetState(arg0 context.Context, arg1 *types.SingleBytes, arg2 ...grpc.CallOption) (*types.State, error)

GetState mocks base method

func (*MockAergoRPCServiceClient) GetStateAndProof

func (m *MockAergoRPCServiceClient) GetStateAndProof(arg0 context.Context, arg1 *types.AccountAndRoot, arg2 ...grpc.CallOption) (*types.AccountProof, error)

GetStateAndProof mocks base method

func (*MockAergoRPCServiceClient) GetTX

GetTX mocks base method

func (*MockAergoRPCServiceClient) GetVotes

GetVotes mocks base method

func (*MockAergoRPCServiceClient) ImportAccount

func (m *MockAergoRPCServiceClient) ImportAccount(arg0 context.Context, arg1 *types.ImportFormat, arg2 ...grpc.CallOption) (*types.Account, error)

ImportAccount mocks base method

func (*MockAergoRPCServiceClient) ListBlockHeaders

func (m *MockAergoRPCServiceClient) ListBlockHeaders(arg0 context.Context, arg1 *types.ListParams, arg2 ...grpc.CallOption) (*types.BlockHeaderList, error)

ListBlockHeaders mocks base method

func (*MockAergoRPCServiceClient) ListBlockMetadata added in v0.9.4

func (m *MockAergoRPCServiceClient) ListBlockMetadata(arg0 context.Context, arg1 *types.ListParams, arg2 ...grpc.CallOption) (*types.BlockMetadataList, error)

ListBlockMetadata mocks base method

func (*MockAergoRPCServiceClient) ListBlockMetadataStream added in v0.9.4

ListBlockMetadataStream mocks base method

func (*MockAergoRPCServiceClient) ListBlockStream

ListBlockStream mocks base method

func (*MockAergoRPCServiceClient) LockAccount

func (m *MockAergoRPCServiceClient) LockAccount(arg0 context.Context, arg1 *types.Personal, arg2 ...grpc.CallOption) (*types.Account, error)

LockAccount mocks base method

func (*MockAergoRPCServiceClient) Metric added in v0.8.2

Metric mocks base method

func (*MockAergoRPCServiceClient) NodeState

NodeState mocks base method

func (*MockAergoRPCServiceClient) QueryContract

func (m *MockAergoRPCServiceClient) QueryContract(arg0 context.Context, arg1 *types.Query, arg2 ...grpc.CallOption) (*types.SingleBytes, error)

QueryContract mocks base method

func (*MockAergoRPCServiceClient) QueryContractState

func (m *MockAergoRPCServiceClient) QueryContractState(arg0 context.Context, arg1 *types.StateQuery, arg2 ...grpc.CallOption) (*types.StateQueryProof, error)

QueryContractState mocks base method

func (*MockAergoRPCServiceClient) SendTX

SendTX mocks base method

func (*MockAergoRPCServiceClient) SignTX

func (m *MockAergoRPCServiceClient) SignTX(arg0 context.Context, arg1 *types.Tx, arg2 ...grpc.CallOption) (*types.Tx, error)

SignTX mocks base method

func (*MockAergoRPCServiceClient) UnlockAccount

func (m *MockAergoRPCServiceClient) UnlockAccount(arg0 context.Context, arg1 *types.Personal, arg2 ...grpc.CallOption) (*types.Account, error)

UnlockAccount mocks base method

func (*MockAergoRPCServiceClient) VerifyTX

func (m *MockAergoRPCServiceClient) VerifyTX(arg0 context.Context, arg1 *types.Tx, arg2 ...grpc.CallOption) (*types.VerifyResult, error)

VerifyTX mocks base method

type MockAergoRPCServiceClientMockRecorder

type MockAergoRPCServiceClientMockRecorder struct {
	// contains filtered or unexported fields
}

MockAergoRPCServiceClientMockRecorder is the mock recorder for MockAergoRPCServiceClient

func (*MockAergoRPCServiceClientMockRecorder) Blockchain

func (mr *MockAergoRPCServiceClientMockRecorder) Blockchain(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

Blockchain indicates an expected call of Blockchain

func (*MockAergoRPCServiceClientMockRecorder) CommitTX

func (mr *MockAergoRPCServiceClientMockRecorder) CommitTX(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

CommitTX indicates an expected call of CommitTX

func (*MockAergoRPCServiceClientMockRecorder) CreateAccount

func (mr *MockAergoRPCServiceClientMockRecorder) CreateAccount(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

CreateAccount indicates an expected call of CreateAccount

func (*MockAergoRPCServiceClientMockRecorder) ExportAccount

func (mr *MockAergoRPCServiceClientMockRecorder) ExportAccount(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

ExportAccount indicates an expected call of ExportAccount

func (*MockAergoRPCServiceClientMockRecorder) GetABI

func (mr *MockAergoRPCServiceClientMockRecorder) GetABI(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

GetABI indicates an expected call of GetABI

func (*MockAergoRPCServiceClientMockRecorder) GetAccounts

func (mr *MockAergoRPCServiceClientMockRecorder) GetAccounts(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

GetAccounts indicates an expected call of GetAccounts

func (*MockAergoRPCServiceClientMockRecorder) GetBlock

func (mr *MockAergoRPCServiceClientMockRecorder) GetBlock(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

GetBlock indicates an expected call of GetBlock

func (*MockAergoRPCServiceClientMockRecorder) GetBlockBody added in v0.11.0

func (mr *MockAergoRPCServiceClientMockRecorder) GetBlockBody(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

GetBlockBody indicates an expected call of GetBlockBody

func (*MockAergoRPCServiceClientMockRecorder) GetBlockMetadata added in v0.11.0

func (mr *MockAergoRPCServiceClientMockRecorder) GetBlockMetadata(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

GetBlockMetadata indicates an expected call of GetBlockMetadata

func (*MockAergoRPCServiceClientMockRecorder) GetBlockTX

func (mr *MockAergoRPCServiceClientMockRecorder) GetBlockTX(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

GetBlockTX indicates an expected call of GetBlockTX

func (*MockAergoRPCServiceClientMockRecorder) GetNameInfo added in v0.9.4

func (mr *MockAergoRPCServiceClientMockRecorder) GetNameInfo(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

GetNameInfo indicates an expected call of GetNameInfo

func (*MockAergoRPCServiceClientMockRecorder) GetPeers

func (mr *MockAergoRPCServiceClientMockRecorder) GetPeers(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

GetPeers indicates an expected call of GetPeers

func (*MockAergoRPCServiceClientMockRecorder) GetReceipt

func (mr *MockAergoRPCServiceClientMockRecorder) GetReceipt(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

GetReceipt indicates an expected call of GetReceipt

func (*MockAergoRPCServiceClientMockRecorder) GetStaking

func (mr *MockAergoRPCServiceClientMockRecorder) GetStaking(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

GetStaking indicates an expected call of GetStaking

func (*MockAergoRPCServiceClientMockRecorder) GetState

func (mr *MockAergoRPCServiceClientMockRecorder) GetState(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

GetState indicates an expected call of GetState

func (*MockAergoRPCServiceClientMockRecorder) GetStateAndProof

func (mr *MockAergoRPCServiceClientMockRecorder) GetStateAndProof(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

GetStateAndProof indicates an expected call of GetStateAndProof

func (*MockAergoRPCServiceClientMockRecorder) GetTX

func (mr *MockAergoRPCServiceClientMockRecorder) GetTX(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

GetTX indicates an expected call of GetTX

func (*MockAergoRPCServiceClientMockRecorder) GetVotes

func (mr *MockAergoRPCServiceClientMockRecorder) GetVotes(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

GetVotes indicates an expected call of GetVotes

func (*MockAergoRPCServiceClientMockRecorder) ImportAccount

func (mr *MockAergoRPCServiceClientMockRecorder) ImportAccount(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

ImportAccount indicates an expected call of ImportAccount

func (*MockAergoRPCServiceClientMockRecorder) ListBlockHeaders

func (mr *MockAergoRPCServiceClientMockRecorder) ListBlockHeaders(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

ListBlockHeaders indicates an expected call of ListBlockHeaders

func (*MockAergoRPCServiceClientMockRecorder) ListBlockMetadata added in v0.9.4

func (mr *MockAergoRPCServiceClientMockRecorder) ListBlockMetadata(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

ListBlockMetadata indicates an expected call of ListBlockMetadata

func (*MockAergoRPCServiceClientMockRecorder) ListBlockMetadataStream added in v0.9.4

func (mr *MockAergoRPCServiceClientMockRecorder) ListBlockMetadataStream(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

ListBlockMetadataStream indicates an expected call of ListBlockMetadataStream

func (*MockAergoRPCServiceClientMockRecorder) ListBlockStream

func (mr *MockAergoRPCServiceClientMockRecorder) ListBlockStream(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

ListBlockStream indicates an expected call of ListBlockStream

func (*MockAergoRPCServiceClientMockRecorder) LockAccount

func (mr *MockAergoRPCServiceClientMockRecorder) LockAccount(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

LockAccount indicates an expected call of LockAccount

func (*MockAergoRPCServiceClientMockRecorder) Metric added in v0.8.2

func (mr *MockAergoRPCServiceClientMockRecorder) Metric(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

Metric indicates an expected call of Metric

func (*MockAergoRPCServiceClientMockRecorder) NodeState

func (mr *MockAergoRPCServiceClientMockRecorder) NodeState(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

NodeState indicates an expected call of NodeState

func (*MockAergoRPCServiceClientMockRecorder) QueryContract

func (mr *MockAergoRPCServiceClientMockRecorder) QueryContract(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

QueryContract indicates an expected call of QueryContract

func (*MockAergoRPCServiceClientMockRecorder) QueryContractState

func (mr *MockAergoRPCServiceClientMockRecorder) QueryContractState(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

QueryContractState indicates an expected call of QueryContractState

func (*MockAergoRPCServiceClientMockRecorder) SendTX

func (mr *MockAergoRPCServiceClientMockRecorder) SendTX(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

SendTX indicates an expected call of SendTX

func (*MockAergoRPCServiceClientMockRecorder) SignTX

func (mr *MockAergoRPCServiceClientMockRecorder) SignTX(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

SignTX indicates an expected call of SignTX

func (*MockAergoRPCServiceClientMockRecorder) UnlockAccount

func (mr *MockAergoRPCServiceClientMockRecorder) UnlockAccount(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

UnlockAccount indicates an expected call of UnlockAccount

func (*MockAergoRPCServiceClientMockRecorder) VerifyTX

func (mr *MockAergoRPCServiceClientMockRecorder) VerifyTX(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

VerifyTX indicates an expected call of VerifyTX

Jump to

Keyboard shortcuts

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