Documentation ¶
Overview ¶
Package testutil is a generated GoMock package.
Package testutil is a generated GoMock package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
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 ¶
func (m *MockIElementsClient) EXPECT() *MockIElementsClientMockRecorder
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 ¶
func (m *MockIPlanetmintClient) CheckMintRequest(txhash string) (*types.QueryGetMintRequestsByHashResponse, error)
CheckMintRequest mocks base method.
func (*MockIPlanetmintClient) EXPECT ¶
func (m *MockIPlanetmintClient) EXPECT() *MockIPlanetmintClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
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.