Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup IBC types tests #6411

Closed
4 tasks
colin-axner opened this issue Jun 11, 2020 · 1 comment · Fixed by #7521
Closed
4 tasks

Cleanup IBC types tests #6411

colin-axner opened this issue Jun 11, 2020 · 1 comment · Fixed by #7521
Assignees
Labels
good first issue T: Tests Type: Code Hygiene General cleanup and restructuring of code to provide clarity, flexibility, and modularity.

Comments

@colin-axner
Copy link
Contributor

colin-axner commented Jun 11, 2020

Summary

Some of the types tests in IBC submodules could use spring cleaning.

Problem/Propsal

Redundant/unnecessary variable definitions. Strings should use a defined const not for example in connection/msgs_test.go "ibconntest". make a var connID = "ibconntest"

In msgs_test reduce code lines by combining message definitions with test case definition. It is extra technical debt to maintain correct test number ordering (for example: msg[3]).

Use test case struct for with the format:

type MsgTestCase struct {
    name string
    msg *sdk.Msg // or specific message type
    expPass bool
}

Use MsgTestSuite instead of just *testing.T.


For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned
@colin-axner colin-axner added x/ibc T: Tests Type: Code Hygiene General cleanup and restructuring of code to provide clarity, flexibility, and modularity. labels Jun 11, 2020
@colin-axner colin-axner changed the title Cleanup Cleanup IBC types tests Jun 11, 2020
@github-actions
Copy link
Contributor

github-actions bot commented Jul 4, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue T: Tests Type: Code Hygiene General cleanup and restructuring of code to provide clarity, flexibility, and modularity.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants