mocks

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package mock_utils is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BroadcastTxBehaviour

type BroadcastTxBehaviour int
const (
	BroadcastTxOk  BroadcastTxBehaviour = iota // default behaviour
	CheckTxError   BroadcastTxBehaviour = 1
	DeliverTxError BroadcastTxBehaviour = 2
)

type BroadtcastTxMock

type BroadtcastTxMock struct {
	Impl BroadcastTxBehaviour
}

type GetWalletBehaviour

type GetWalletBehaviour int
const (
	WalletNotFound GetWalletBehaviour = iota // default behaviour
	WalletFound    GetWalletBehaviour = 1
	InternalError  GetWalletBehaviour = 2
)

type GetWalletMock

type GetWalletMock struct {
	Impl       GetWalletBehaviour
	WithTokens x.Coins
}

type MockClient

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

MockClient is a mock of Client interface

func NewBcpClientMock

func NewBcpClientMock(ctrl *gomock.Controller, getWallet GetWalletMock, broadcastTx BroadtcastTxMock) *MockClient

func NewBcpClientMockWithDefault

func NewBcpClientMockWithDefault(ctrl *gomock.Controller) *MockClient

func NewMockClient

func NewMockClient(ctrl *gomock.Controller) *MockClient

NewMockClient creates a new mock instance

func (*MockClient) BroadcastTx

func (m *MockClient) BroadcastTx(tx weave.Tx) utils.BroadcastTxResponse

BroadcastTx mocks base method

func (*MockClient) BroadcastTxAsync

func (m *MockClient) BroadcastTxAsync(tx weave.Tx, out chan<- utils.BroadcastTxResponse)

BroadcastTxAsync mocks base method

func (*MockClient) BroadcastTxSync

func (m *MockClient) BroadcastTxSync(tx weave.Tx, timeout time.Duration) utils.BroadcastTxResponse

BroadcastTxSync 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) GetUser

func (m *MockClient) GetUser(addr weave.Address) (*utils.UserResponse, error)

GetUser mocks base method

func (*MockClient) GetWallet

func (m *MockClient) GetWallet(addr weave.Address) (*utils.WalletResponse, error)

GetWallet mocks base method

type MockClientMockRecorder

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

MockClientMockRecorder is the mock recorder for MockClient

func (*MockClientMockRecorder) BroadcastTx

func (mr *MockClientMockRecorder) BroadcastTx(tx interface{}) *gomock.Call

BroadcastTx indicates an expected call of BroadcastTx

func (*MockClientMockRecorder) BroadcastTxAsync

func (mr *MockClientMockRecorder) BroadcastTxAsync(tx, out interface{}) *gomock.Call

BroadcastTxAsync indicates an expected call of BroadcastTxAsync

func (*MockClientMockRecorder) BroadcastTxSync

func (mr *MockClientMockRecorder) BroadcastTxSync(tx, timeout interface{}) *gomock.Call

BroadcastTxSync indicates an expected call of BroadcastTxSync

func (*MockClientMockRecorder) GetUser

func (mr *MockClientMockRecorder) GetUser(addr interface{}) *gomock.Call

GetUser indicates an expected call of GetUser

func (*MockClientMockRecorder) GetWallet

func (mr *MockClientMockRecorder) GetWallet(addr interface{}) *gomock.Call

GetWallet indicates an expected call of GetWallet

Jump to

Keyboard shortcuts

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