Documentation ¶
Index ¶
- type MockSwapParser
- func (_m *MockSwapParser) DeserializeAccept(msg []byte) *domain.SwapAccept
- func (_m *MockSwapParser) DeserializeComplete(msg []byte) *domain.SwapComplete
- func (_m *MockSwapParser) DeserializeFail(msg []byte) *domain.SwapFail
- func (_m *MockSwapParser) DeserializeRequest(msg []byte) *domain.SwapRequest
- func (_m *MockSwapParser) ParseSwapTransaction(tx string) (*domain.SwapTransactionDetails, int)
- func (_m *MockSwapParser) SerializeAccept(reqMsg []byte, tx string, unblindedIns []domain.UnblindedInput) (string, []byte, int)
- func (_m *MockSwapParser) SerializeComplete(accMsg []byte, tx string) (string, []byte, int)
- func (_m *MockSwapParser) SerializeFail(id string, code int) (string, []byte)
- func (_m *MockSwapParser) SerializeRequest(r domain.SwapRequest) ([]byte, int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockSwapParser ¶
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) *domain.SwapRequest
DeserializeRequest provides a mock function with given fields: msg
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 ¶
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