testutil

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package testutil is a generated GoMock package.

Package testutil is a generated GoMock package.

Index

Constants

This section is empty.

Variables

View Source
var (
	GetTransactionResult = types.GetTransactionResult{Hex: zeros, TxID: zeros, Details: GetTransactionResultDetails, Amount: map[string]float64{
		"7add40beb27df701e02ee85089c5bc0021bc813823fedb5f1dcb5debda7f3da9": 10000,
	}, Confirmations: 10}
	DeriveAddressesResult       = types.DeriveAddressesResult{"tex1q2xn886usv9wxuvnfa6cll4ny6q2dk99mcpefk4"}
	GetTransactionResultDetails = []types.GetTransactionDetailsResult{{Address: "tex1q2xn886usv9wxuvnfa6cll4ny6q2dk99mcpefk4"}}

	GetNewAddress               = "tex1q2xn886usv9wxuvnfa6cll4ny6q2dk99mcpefk4"
	PlanetmintAddress           = "plmnt1683t0us0r85840nsepx6jrk2kjxw7zrcnkf0rp"
	ConfidentialAddr            = "tlq1qqt2tw28n29t6jcdspnz2nc4cqack596wryvuvjm3w3fey3a572flxjvy3xu6kd4nmx8hs8fzq9ns3vr9e7q0s22cu2pp7m2l4"
	UnconfidentialAddr          = "tex1qfxzgnwdtx6eanrmcr53qzecgkpjulq8crkueph"
	AddressInfo                 = types.GetAddressInfoResult{Confidential: UnconfidentialAddr}
	ReceivedTxByAddress1Tx      = types.ListReceivedByAddressResult{Address: ConfidentialAddr, Amount: 2.00000000, Confirmations: 2, TxIDs: []string{"44e7812ffa95a4031c1b97f534c2535fdad583627203bf63db8d5909902b6a87"}}
	ReceivedTxByAddress2Tx      = types.ListReceivedByAddressResult{Address: ConfidentialAddr, Amount: 2.00000000, Confirmations: 2, TxIDs: []string{"44e7812ffa95a4031c1b97f534c2535fdad583627203bf63db8d5909902b6a87", "87d8be31018183c7b6e013ef712d186a3e7aca08b37abe6bc86acda23692cb9b"}}
	ReceivedTxByAddressArray2Tx = []types.ListReceivedByAddressResult{ReceivedTxByAddress2Tx}
	ReceivedTxByAddressArray1Tx = []types.ListReceivedByAddressResult{ReceivedTxByAddress1Tx}
)

Functions

This section is empty.

Types

type MockIElementsClient

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

MockIElementsClient is a mock of IElementsClient interface.

func NewMockIElementsClient

func NewMockIElementsClient(ctrl *gomock.Controller) *MockIElementsClient

NewMockIElementsClient creates a new mock instance.

func (*MockIElementsClient) EXPECT

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

func (*MockIElementsClient) GetNewAddress

func (m *MockIElementsClient) GetNewAddress(url string, params []string) (string, error)

GetNewAddress mocks base method.

func (*MockIElementsClient) ListReceivedByAddress

func (m *MockIElementsClient) ListReceivedByAddress(url string, params []string) ([]types.ListReceivedByAddressResult, error)

ListReceivedByAddress mocks base method.

type MockIElementsClientMockRecorder

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

MockIElementsClientMockRecorder is the mock recorder for MockIElementsClient.

func (*MockIElementsClientMockRecorder) GetNewAddress

func (mr *MockIElementsClientMockRecorder) GetNewAddress(url, params interface{}) *gomock.Call

GetNewAddress indicates an expected call of GetNewAddress.

func (*MockIElementsClientMockRecorder) ListReceivedByAddress

func (mr *MockIElementsClientMockRecorder) ListReceivedByAddress(url, params interface{}) *gomock.Call

ListReceivedByAddress indicates an expected call of ListReceivedByAddress.

type MockIPlanetmintClient

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

MockIPlanetmintClient is a mock of IPlanetmintClient interface.

func NewMockIPlanetmintClient

func NewMockIPlanetmintClient(ctrl *gomock.Controller) *MockIPlanetmintClient

NewMockIPlanetmintClient creates a new mock instance.

func (*MockIPlanetmintClient) CheckMintRequest

CheckMintRequest mocks base method.

func (*MockIPlanetmintClient) EXPECT

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

func (*MockIPlanetmintClient) MintPLMNT

func (m *MockIPlanetmintClient) MintPLMNT(beneficiary string, amount uint64, liquidTxHash string) error

MintPLMNT mocks base method.

type MockIPlanetmintClientMockRecorder

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

MockIPlanetmintClientMockRecorder is the mock recorder for MockIPlanetmintClient.

func (*MockIPlanetmintClientMockRecorder) CheckMintRequest

func (mr *MockIPlanetmintClientMockRecorder) CheckMintRequest(txhash interface{}) *gomock.Call

CheckMintRequest indicates an expected call of CheckMintRequest.

func (*MockIPlanetmintClientMockRecorder) MintPLMNT

func (mr *MockIPlanetmintClientMockRecorder) MintPLMNT(beneficiary, amount, liquidTxHash interface{}) *gomock.Call

MintPLMNT indicates an expected call of MintPLMNT.

Jump to

Keyboard shortcuts

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