-
Notifications
You must be signed in to change notification settings - Fork 214
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
CNS-7: Enable consumer operation upon staking #142
CNS-7: Enable consumer operation upon staking #142
Conversation
) | ||
|
||
// Setup a new App for testing purposes | ||
func TestSetup() (cosmoscmd.App, sdk.Context) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test functions should be in a file ending with _test, go knows not to compile them, with the current name, it will be included in the binary
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is just seting up for a test, not a test function in itself
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
doesn't matter what is in the file, if it doesn't end with _test.go its compiled into the final binary and we dont need test helper functions in our binary
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if i do this it makes the file unusable outside of the package, since it becomes a test file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor stuff
No description provided.