Skip to content

Commit

Permalink
- route and type message tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dssei committed Dec 13, 2024
1 parent 88dd53d commit 2b6bea0
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions x/confidentialtransfers/types/msgs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}

0 comments on commit 2b6bea0

Please sign in to comment.