From 2b6bea0fde1d3c933af504afeda2bbc9b71e5616 Mon Sep 17 00:00:00 2001 From: _dssei_ Date: Thu, 12 Dec 2024 18:50:17 -0800 Subject: [PATCH] - route and type message tests --- x/confidentialtransfers/types/msgs_test.go | 50 ++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/x/confidentialtransfers/types/msgs_test.go b/x/confidentialtransfers/types/msgs_test.go index 2ff0efb8e..78be1a4f2 100644 --- a/x/confidentialtransfers/types/msgs_test.go +++ b/x/confidentialtransfers/types/msgs_test.go @@ -1992,3 +1992,53 @@ func TestMsgWithdraw_Decrypt(t *testing.T) { }) } } + +func TestMsgTransfer_Route(t *testing.T) { + msg := &MsgTransfer{} + require.Equal(t, "confidentialtransfers", msg.Route()) +} + +func TestMsgTransfer_Type(t *testing.T) { + msg := &MsgTransfer{} + require.Equal(t, "transfer", msg.Type()) +} + +func TestNewMsgInitializeAccount_Route(t *testing.T) { + msg := &MsgInitializeAccount{} + require.Equal(t, "confidentialtransfers", msg.Route()) +} + +func TestNewMsgInitializeAccount_Type(t *testing.T) { + msg := &MsgInitializeAccount{} + require.Equal(t, "initialize_account", msg.Type()) +} + +func TestNewMsgApplyPendingBalance_Route(t *testing.T) { + msg := &MsgApplyPendingBalance{} + require.Equal(t, "confidentialtransfers", msg.Route()) +} + +func TestNewMsgApplyPendingBalance_Type(t *testing.T) { + msg := &MsgApplyPendingBalance{} + require.Equal(t, "apply_pending_balance", msg.Type()) +} + +func TestNewMsgCloseAccount_Route(t *testing.T) { + msg := &MsgCloseAccount{} + require.Equal(t, "confidentialtransfers", msg.Route()) +} + +func TestNewMsgCloseAccount_Type(t *testing.T) { + msg := &MsgCloseAccount{} + require.Equal(t, "close_account", msg.Type()) +} + +func TestNewMsgWithdraw_Route(t *testing.T) { + msg := &MsgWithdraw{} + require.Equal(t, "confidentialtransfers", msg.Route()) +} + +func TestNewMsgWithdraw_Type(t *testing.T) { + msg := &MsgWithdraw{} + require.Equal(t, "withdraw", msg.Type()) +}