mocks

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockSwapParser

type MockSwapParser struct {
	mock.Mock
}

MockSwapParser is an autogenerated mock type for the SwapParser type

func NewMockSwapParser

func NewMockSwapParser(t mockConstructorTestingTNewMockSwapParser) *MockSwapParser

NewMockSwapParser creates a new instance of MockSwapParser. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*MockSwapParser) DeserializeAccept

func (_m *MockSwapParser) DeserializeAccept(msg []byte) *domain.SwapAccept

DeserializeAccept provides a mock function with given fields: msg

func (*MockSwapParser) DeserializeComplete

func (_m *MockSwapParser) DeserializeComplete(msg []byte) *domain.SwapComplete

DeserializeComplete provides a mock function with given fields: msg

func (*MockSwapParser) DeserializeFail

func (_m *MockSwapParser) DeserializeFail(msg []byte) *domain.SwapFail

DeserializeFail provides a mock function with given fields: msg

func (*MockSwapParser) DeserializeRequest

func (_m *MockSwapParser) DeserializeRequest(msg []byte, feeAsset string, feeAmount uint64) *domain.SwapRequest

DeserializeRequest provides a mock function with given fields: msg, feeAsset, feeAmount

func (*MockSwapParser) ParseSwapTransaction

func (_m *MockSwapParser) ParseSwapTransaction(tx string) (*domain.SwapTransactionDetails, int)

ParseSwapTransaction provides a mock function with given fields: tx

func (*MockSwapParser) SerializeAccept

func (_m *MockSwapParser) SerializeAccept(reqMsg []byte, tx string, unblindedIns []domain.UnblindedInput) (string, []byte, int)

SerializeAccept provides a mock function with given fields: reqMsg, tx, unblindedIns

func (*MockSwapParser) SerializeComplete

func (_m *MockSwapParser) SerializeComplete(accMsg []byte, tx string) (string, []byte, int)

SerializeComplete provides a mock function with given fields: accMsg, tx

func (*MockSwapParser) SerializeFail

func (_m *MockSwapParser) SerializeFail(id string, code int) (string, []byte)

SerializeFail provides a mock function with given fields: id, code

func (*MockSwapParser) SerializeRequest

func (_m *MockSwapParser) SerializeRequest(r domain.SwapRequest) ([]byte, int)

SerializeRequest provides a mock function with given fields: r

Jump to

Keyboard shortcuts

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