mocks

package
v0.0.32 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockClient

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

MockClient is a mock of Client interface

func NewMockClient

func NewMockClient(ctrl *gomock.Controller) *MockClient

NewMockClient creates a new mock instance

func (*MockClient) Call

func (m *MockClient) Call(method string, params interface{}) (util.Map, int, error)

Call mocks base method

func (*MockClient) DHT

func (m *MockClient) DHT() types.DHT

DHT mocks base method

func (*MockClient) EXPECT

func (m *MockClient) EXPECT() *MockClientMockRecorder

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

func (*MockClient) GetOptions

func (m *MockClient) GetOptions() *types.Options

GetOptions mocks base method

func (*MockClient) Node

func (m *MockClient) Node() types.Node

Node mocks base method

func (*MockClient) Pool

func (m *MockClient) Pool() types.Pool

Pool mocks base method

func (*MockClient) PushKey

func (m *MockClient) PushKey() types.PushKey

PushKey mocks base method

func (*MockClient) RPC

func (m *MockClient) RPC() types.RPC

RPC mocks base method

func (*MockClient) Repo

func (m *MockClient) Repo() types.Repo

Repo mocks base method

func (*MockClient) Ticket

func (m *MockClient) Ticket() types.Ticket

Ticket mocks base method

func (*MockClient) Tx

func (m *MockClient) Tx() types.Tx

Tx mocks base method

func (*MockClient) User

func (m *MockClient) User() types.User

User mocks base method

type MockClientMockRecorder

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

MockClientMockRecorder is the mock recorder for MockClient

func (*MockClientMockRecorder) Call

func (mr *MockClientMockRecorder) Call(method, params interface{}) *gomock.Call

Call indicates an expected call of Call

func (*MockClientMockRecorder) DHT

func (mr *MockClientMockRecorder) DHT() *gomock.Call

DHT indicates an expected call of DHT

func (*MockClientMockRecorder) GetOptions

func (mr *MockClientMockRecorder) GetOptions() *gomock.Call

GetOptions indicates an expected call of GetOptions

func (*MockClientMockRecorder) Node

func (mr *MockClientMockRecorder) Node() *gomock.Call

Node indicates an expected call of Node

func (*MockClientMockRecorder) Pool

func (mr *MockClientMockRecorder) Pool() *gomock.Call

Pool indicates an expected call of Pool

func (*MockClientMockRecorder) PushKey

func (mr *MockClientMockRecorder) PushKey() *gomock.Call

PushKey indicates an expected call of PushKey

func (*MockClientMockRecorder) RPC

func (mr *MockClientMockRecorder) RPC() *gomock.Call

RPC indicates an expected call of RPC

func (*MockClientMockRecorder) Repo

func (mr *MockClientMockRecorder) Repo() *gomock.Call

Repo indicates an expected call of Repo

func (*MockClientMockRecorder) Ticket

func (mr *MockClientMockRecorder) Ticket() *gomock.Call

Ticket indicates an expected call of Ticket

func (*MockClientMockRecorder) Tx

Tx indicates an expected call of Tx

func (*MockClientMockRecorder) User

func (mr *MockClientMockRecorder) User() *gomock.Call

User indicates an expected call of User

type MockDHT

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

MockDHT is a mock of DHT interface

func NewMockDHT

func NewMockDHT(ctrl *gomock.Controller) *MockDHT

NewMockDHT creates a new mock instance

func (*MockDHT) Announce

func (m *MockDHT) Announce(key string) error

Announce mocks base method

func (*MockDHT) EXPECT

func (m *MockDHT) EXPECT() *MockDHTMockRecorder

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

func (*MockDHT) GetPeers

func (m *MockDHT) GetPeers() ([]string, error)

GetPeers mocks base method

func (*MockDHT) GetProviders

func (m *MockDHT) GetProviders(key string) ([]*api.ResultDHTProvider, error)

GetProviders mocks base method

func (*MockDHT) GetRepoObjectProviders

func (m *MockDHT) GetRepoObjectProviders(hash string) ([]*api.ResultDHTProvider, error)

GetRepoObjectProviders mocks base method

func (*MockDHT) Lookup

func (m *MockDHT) Lookup(key string) (string, error)

Lookup mocks base method

func (*MockDHT) Store

func (m *MockDHT) Store(key, value string) error

Store mocks base method

type MockDHTMockRecorder

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

MockDHTMockRecorder is the mock recorder for MockDHT

func (*MockDHTMockRecorder) Announce

func (mr *MockDHTMockRecorder) Announce(key interface{}) *gomock.Call

Announce indicates an expected call of Announce

func (*MockDHTMockRecorder) GetPeers

func (mr *MockDHTMockRecorder) GetPeers() *gomock.Call

GetPeers indicates an expected call of GetPeers

func (*MockDHTMockRecorder) GetProviders

func (mr *MockDHTMockRecorder) GetProviders(key interface{}) *gomock.Call

GetProviders indicates an expected call of GetProviders

func (*MockDHTMockRecorder) GetRepoObjectProviders

func (mr *MockDHTMockRecorder) GetRepoObjectProviders(hash interface{}) *gomock.Call

GetRepoObjectProviders indicates an expected call of GetRepoObjectProviders

func (*MockDHTMockRecorder) Lookup

func (mr *MockDHTMockRecorder) Lookup(key interface{}) *gomock.Call

Lookup indicates an expected call of Lookup

func (*MockDHTMockRecorder) Store

func (mr *MockDHTMockRecorder) Store(key, value interface{}) *gomock.Call

Store indicates an expected call of Store

type MockNode

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

MockNode is a mock of Node interface

func NewMockNode

func NewMockNode(ctrl *gomock.Controller) *MockNode

NewMockNode creates a new mock instance

func (*MockNode) EXPECT

func (m *MockNode) EXPECT() *MockNodeMockRecorder

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

func (*MockNode) GetBlock

func (m *MockNode) GetBlock(height uint64) (*api.ResultBlock, error)

GetBlock mocks base method

func (*MockNode) GetBlockInfo

func (m *MockNode) GetBlockInfo(height uint64) (*api.ResultBlockInfo, error)

GetBlockInfo mocks base method

func (*MockNode) GetHeight

func (m *MockNode) GetHeight() (uint64, error)

GetHeight mocks base method

func (*MockNode) GetValidators

func (m *MockNode) GetValidators(height uint64) ([]*api.ResultValidator, error)

GetValidators mocks base method

func (*MockNode) IsSyncing

func (m *MockNode) IsSyncing() (bool, error)

IsSyncing mocks base method

type MockNodeMockRecorder

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

MockNodeMockRecorder is the mock recorder for MockNode

func (*MockNodeMockRecorder) GetBlock

func (mr *MockNodeMockRecorder) GetBlock(height interface{}) *gomock.Call

GetBlock indicates an expected call of GetBlock

func (*MockNodeMockRecorder) GetBlockInfo

func (mr *MockNodeMockRecorder) GetBlockInfo(height interface{}) *gomock.Call

GetBlockInfo indicates an expected call of GetBlockInfo

func (*MockNodeMockRecorder) GetHeight

func (mr *MockNodeMockRecorder) GetHeight() *gomock.Call

GetHeight indicates an expected call of GetHeight

func (*MockNodeMockRecorder) GetValidators

func (mr *MockNodeMockRecorder) GetValidators(height interface{}) *gomock.Call

GetValidators indicates an expected call of GetValidators

func (*MockNodeMockRecorder) IsSyncing

func (mr *MockNodeMockRecorder) IsSyncing() *gomock.Call

IsSyncing indicates an expected call of IsSyncing

type MockPool

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

MockPool is a mock of Pool interface

func NewMockPool

func NewMockPool(ctrl *gomock.Controller) *MockPool

NewMockPool creates a new mock instance

func (*MockPool) EXPECT

func (m *MockPool) EXPECT() *MockPoolMockRecorder

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

func (*MockPool) GetPushPoolSize

func (m *MockPool) GetPushPoolSize() (int, error)

GetPushPoolSize mocks base method

func (*MockPool) GetSize

func (m *MockPool) GetSize() (*api.ResultPoolSize, error)

GetSize mocks base method

type MockPoolMockRecorder

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

MockPoolMockRecorder is the mock recorder for MockPool

func (*MockPoolMockRecorder) GetPushPoolSize

func (mr *MockPoolMockRecorder) GetPushPoolSize() *gomock.Call

GetPushPoolSize indicates an expected call of GetPushPoolSize

func (*MockPoolMockRecorder) GetSize

func (mr *MockPoolMockRecorder) GetSize() *gomock.Call

GetSize indicates an expected call of GetSize

type MockPushKey

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

MockPushKey is a mock of PushKey interface

func NewMockPushKey

func NewMockPushKey(ctrl *gomock.Controller) *MockPushKey

NewMockPushKey creates a new mock instance

func (*MockPushKey) EXPECT

func (m *MockPushKey) EXPECT() *MockPushKeyMockRecorder

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

func (*MockPushKey) GetOwner

func (m *MockPushKey) GetOwner(addr string, blockHeight ...uint64) (*api.ResultAccount, error)

GetOwner mocks base method

func (*MockPushKey) Register

Register mocks base method

type MockPushKeyMockRecorder

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

MockPushKeyMockRecorder is the mock recorder for MockPushKey

func (*MockPushKeyMockRecorder) GetOwner

func (mr *MockPushKeyMockRecorder) GetOwner(addr interface{}, blockHeight ...interface{}) *gomock.Call

GetOwner indicates an expected call of GetOwner

func (*MockPushKeyMockRecorder) Register

func (mr *MockPushKeyMockRecorder) Register(body interface{}) *gomock.Call

Register indicates an expected call of Register

type MockRPC

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

MockRPC is a mock of RPC interface

func NewMockRPC

func NewMockRPC(ctrl *gomock.Controller) *MockRPC

NewMockRPC creates a new mock instance

func (*MockRPC) EXPECT

func (m *MockRPC) EXPECT() *MockRPCMockRecorder

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

func (*MockRPC) GetMethods

func (m *MockRPC) GetMethods() ([]rpc.MethodInfo, error)

GetMethods mocks base method

type MockRPCMockRecorder

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

MockRPCMockRecorder is the mock recorder for MockRPC

func (*MockRPCMockRecorder) GetMethods

func (mr *MockRPCMockRecorder) GetMethods() *gomock.Call

GetMethods indicates an expected call of GetMethods

type MockRepo

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

MockRepo is a mock of Repo interface

func NewMockRepo

func NewMockRepo(ctrl *gomock.Controller) *MockRepo

NewMockRepo creates a new mock instance

func (*MockRepo) AddContributors

func (m *MockRepo) AddContributors(body *api.BodyAddRepoContribs) (*api.ResultHash, error)

AddContributors mocks base method

func (*MockRepo) Create

func (m *MockRepo) Create(body *api.BodyCreateRepo) (*api.ResultCreateRepo, error)

Create mocks base method

func (*MockRepo) EXPECT

func (m *MockRepo) EXPECT() *MockRepoMockRecorder

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

func (*MockRepo) Get

func (m *MockRepo) Get(name string, opts ...*api.GetRepoOpts) (*api.ResultRepository, error)

Get mocks base method

func (*MockRepo) VoteProposal

func (m *MockRepo) VoteProposal(body *api.BodyRepoVote) (*api.ResultHash, error)

VoteProposal mocks base method

type MockRepoMockRecorder

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

MockRepoMockRecorder is the mock recorder for MockRepo

func (*MockRepoMockRecorder) AddContributors

func (mr *MockRepoMockRecorder) AddContributors(body interface{}) *gomock.Call

AddContributors indicates an expected call of AddContributors

func (*MockRepoMockRecorder) Create

func (mr *MockRepoMockRecorder) Create(body interface{}) *gomock.Call

Create indicates an expected call of Create

func (*MockRepoMockRecorder) Get

func (mr *MockRepoMockRecorder) Get(name interface{}, opts ...interface{}) *gomock.Call

Get indicates an expected call of Get

func (*MockRepoMockRecorder) VoteProposal

func (mr *MockRepoMockRecorder) VoteProposal(body interface{}) *gomock.Call

VoteProposal indicates an expected call of VoteProposal

type MockTicket

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

MockTicket is a mock of Ticket interface

func NewMockTicket

func NewMockTicket(ctrl *gomock.Controller) *MockTicket

NewMockTicket creates a new mock instance

func (*MockTicket) Buy

func (m *MockTicket) Buy(body *api.BodyBuyTicket) (*api.ResultHash, error)

Buy mocks base method

func (*MockTicket) BuyHost

func (m *MockTicket) BuyHost(body *api.BodyBuyTicket) (*api.ResultHash, error)

BuyHost mocks base method

func (*MockTicket) EXPECT

func (m *MockTicket) EXPECT() *MockTicketMockRecorder

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

func (*MockTicket) List

func (m *MockTicket) List(body *api.BodyTicketQuery) ([]*api.ResultTicket, error)

List mocks base method

func (*MockTicket) ListHost

func (m *MockTicket) ListHost(body *api.BodyTicketQuery) ([]*api.ResultTicket, error)

ListHost mocks base method

type MockTicketMockRecorder

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

MockTicketMockRecorder is the mock recorder for MockTicket

func (*MockTicketMockRecorder) Buy

func (mr *MockTicketMockRecorder) Buy(body interface{}) *gomock.Call

Buy indicates an expected call of Buy

func (*MockTicketMockRecorder) BuyHost

func (mr *MockTicketMockRecorder) BuyHost(body interface{}) *gomock.Call

BuyHost indicates an expected call of BuyHost

func (*MockTicketMockRecorder) List

func (mr *MockTicketMockRecorder) List(body interface{}) *gomock.Call

List indicates an expected call of List

func (*MockTicketMockRecorder) ListHost

func (mr *MockTicketMockRecorder) ListHost(body interface{}) *gomock.Call

ListHost indicates an expected call of ListHost

type MockTx

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

MockTx is a mock of Tx interface

func NewMockTx

func NewMockTx(ctrl *gomock.Controller) *MockTx

NewMockTx creates a new mock instance

func (*MockTx) EXPECT

func (m *MockTx) EXPECT() *MockTxMockRecorder

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

func (*MockTx) Get

func (m *MockTx) Get(hash string) (*api.ResultTx, error)

Get mocks base method

func (*MockTx) Send

func (m *MockTx) Send(data map[string]interface{}) (*api.ResultHash, error)

Send mocks base method

type MockTxMockRecorder

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

MockTxMockRecorder is the mock recorder for MockTx

func (*MockTxMockRecorder) Get

func (mr *MockTxMockRecorder) Get(hash interface{}) *gomock.Call

Get indicates an expected call of Get

func (*MockTxMockRecorder) Send

func (mr *MockTxMockRecorder) Send(data interface{}) *gomock.Call

Send indicates an expected call of Send

type MockUser

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

MockUser is a mock of User interface

func NewMockUser

func NewMockUser(ctrl *gomock.Controller) *MockUser

NewMockUser creates a new mock instance

func (*MockUser) EXPECT

func (m *MockUser) EXPECT() *MockUserMockRecorder

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

func (*MockUser) Get

func (m *MockUser) Get(address string, blockHeight ...uint64) (*api.ResultAccount, error)

Get mocks base method

func (*MockUser) GetBalance

func (m *MockUser) GetBalance(address string, blockHeight ...uint64) (float64, error)

GetBalance mocks base method

func (*MockUser) GetKeys

func (m *MockUser) GetKeys() ([]string, error)

GetKeys mocks base method

func (*MockUser) GetNonce

func (m *MockUser) GetNonce(address string, blockHeight ...uint64) (uint64, error)

GetNonce mocks base method

func (*MockUser) GetPrivateKey

func (m *MockUser) GetPrivateKey(address, passphrase string) (string, error)

GetPrivateKey mocks base method

func (*MockUser) GetPublicKey

func (m *MockUser) GetPublicKey(address, passphrase string) (string, error)

GetPublicKey mocks base method

func (*MockUser) GetStakedBalance

func (m *MockUser) GetStakedBalance(address string, blockHeight ...uint64) (float64, error)

GetStakedBalance mocks base method

func (*MockUser) GetValidator

func (m *MockUser) GetValidator(includePrivKey bool) (*api.ResultValidatorInfo, error)

GetValidator mocks base method

func (*MockUser) Send

func (m *MockUser) Send(body *api.BodySendCoin) (*api.ResultHash, error)

Send mocks base method

func (*MockUser) SetCommission

func (m *MockUser) SetCommission(body *api.BodySetCommission) (*api.ResultHash, error)

SetCommission mocks base method

type MockUserMockRecorder

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

MockUserMockRecorder is the mock recorder for MockUser

func (*MockUserMockRecorder) Get

func (mr *MockUserMockRecorder) Get(address interface{}, blockHeight ...interface{}) *gomock.Call

Get indicates an expected call of Get

func (*MockUserMockRecorder) GetBalance

func (mr *MockUserMockRecorder) GetBalance(address interface{}, blockHeight ...interface{}) *gomock.Call

GetBalance indicates an expected call of GetBalance

func (*MockUserMockRecorder) GetKeys

func (mr *MockUserMockRecorder) GetKeys() *gomock.Call

GetKeys indicates an expected call of GetKeys

func (*MockUserMockRecorder) GetNonce

func (mr *MockUserMockRecorder) GetNonce(address interface{}, blockHeight ...interface{}) *gomock.Call

GetNonce indicates an expected call of GetNonce

func (*MockUserMockRecorder) GetPrivateKey

func (mr *MockUserMockRecorder) GetPrivateKey(address, passphrase interface{}) *gomock.Call

GetPrivateKey indicates an expected call of GetPrivateKey

func (*MockUserMockRecorder) GetPublicKey

func (mr *MockUserMockRecorder) GetPublicKey(address, passphrase interface{}) *gomock.Call

GetPublicKey indicates an expected call of GetPublicKey

func (*MockUserMockRecorder) GetStakedBalance

func (mr *MockUserMockRecorder) GetStakedBalance(address interface{}, blockHeight ...interface{}) *gomock.Call

GetStakedBalance indicates an expected call of GetStakedBalance

func (*MockUserMockRecorder) GetValidator

func (mr *MockUserMockRecorder) GetValidator(includePrivKey interface{}) *gomock.Call

GetValidator indicates an expected call of GetValidator

func (*MockUserMockRecorder) Send

func (mr *MockUserMockRecorder) Send(body interface{}) *gomock.Call

Send indicates an expected call of Send

func (*MockUserMockRecorder) SetCommission

func (mr *MockUserMockRecorder) SetCommission(body interface{}) *gomock.Call

SetCommission indicates an expected call of SetCommission

Jump to

Keyboard shortcuts

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