README

How to generate mock code

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

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

Expand ▾ Collapse ▴

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) GetAccountVotes

                      GetAccountVotes 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

                            GetBlockBody mocks base method

                            func (*MockAergoRPCServiceClient) GetBlockMetadata

                            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

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

                                  GetChainInfo mocks base method

                                  func (*MockAergoRPCServiceClient) GetConsensusInfo

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

                                    GetConsensusInfo mocks base method

                                    func (*MockAergoRPCServiceClient) GetNameInfo

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

                                      GetNameInfo mocks base method

                                      func (*MockAergoRPCServiceClient) GetPeers

                                        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) GetServerInfo

                                          func (m *MockAergoRPCServiceClient) GetServerInfo(arg0 context.Context, arg1 *types.KeyParams, arg2 ...grpc.CallOption) (*types.ServerInfo, error)

                                            GetServerInfo mocks base method

                                            func (*MockAergoRPCServiceClient) GetStaking

                                              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

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

                                                            ListBlockMetadata mocks base method

                                                            func (*MockAergoRPCServiceClient) ListBlockMetadataStream

                                                              ListBlockMetadataStream mocks base method

                                                              func (*MockAergoRPCServiceClient) ListBlockStream

                                                                ListBlockStream mocks base method

                                                                func (*MockAergoRPCServiceClient) ListEventStream

                                                                  ListEventStream mocks base method

                                                                  func (*MockAergoRPCServiceClient) ListEvents

                                                                  func (m *MockAergoRPCServiceClient) ListEvents(arg0 context.Context, arg1 *types.FilterInfo, arg2 ...grpc.CallOption) (*types.EventList, error)

                                                                    ListEvents 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

                                                                        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) GetAccountVotes

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

                                                                                                    GetAccountVotes indicates an expected call of GetAccountVotes

                                                                                                    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

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

                                                                                                          GetBlockBody indicates an expected call of GetBlockBody

                                                                                                          func (*MockAergoRPCServiceClientMockRecorder) GetBlockMetadata

                                                                                                          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) GetChainInfo

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

                                                                                                                GetChainInfo indicates an expected call of GetChainInfo

                                                                                                                func (*MockAergoRPCServiceClientMockRecorder) GetConsensusInfo

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

                                                                                                                  GetConsensusInfo indicates an expected call of GetConsensusInfo

                                                                                                                  func (*MockAergoRPCServiceClientMockRecorder) GetNameInfo

                                                                                                                  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) GetServerInfo

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

                                                                                                                          GetServerInfo indicates an expected call of GetServerInfo

                                                                                                                          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

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

                                                                                                                                          ListBlockMetadata indicates an expected call of ListBlockMetadata

                                                                                                                                          func (*MockAergoRPCServiceClientMockRecorder) ListBlockMetadataStream

                                                                                                                                          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) ListEventStream

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

                                                                                                                                                ListEventStream indicates an expected call of ListEventStream

                                                                                                                                                func (*MockAergoRPCServiceClientMockRecorder) ListEvents

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

                                                                                                                                                  ListEvents indicates an expected call of ListEvents

                                                                                                                                                  func (*MockAergoRPCServiceClientMockRecorder) LockAccount

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

                                                                                                                                                    LockAccount indicates an expected call of LockAccount

                                                                                                                                                    func (*MockAergoRPCServiceClientMockRecorder) Metric

                                                                                                                                                    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

                                                                                                                                                                    Source Files