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

test: more cli validation and tests #46

Merged
merged 1 commit into from
Apr 19, 2024
Merged

Conversation

fmorency
Copy link
Collaborator

No description provided.

@fmorency fmorency self-assigned this Apr 19, 2024
@fmorency fmorency added the test label Apr 19, 2024
@@ -11,15 +11,15 @@ import (
"github.com/strangelove-ventures/interchaintest/v8/ibc"
)

func ManifestUpdateParams(t *testing.T, ctx context.Context, chain *cosmos.CosmosChain, poaAdmin ibc.Wallet, addressPairs string, automaticInflation bool, coinInflationPerYear sdk.Coin, flags ...string) (sdk.TxResponse, error) {
txCmd := []string{"tx", "manifest", "update-params", addressPairs, fmt.Sprintf("%v", automaticInflation), coinInflationPerYear.String()}
func ManifestUpdateParams(t *testing.T, ctx context.Context, chain *cosmos.CosmosChain, poaAdmin ibc.Wallet, addressPairs string, automaticInflation string, coinInflationPerYear string, flags ...string) (sdk.TxResponse, error) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't get this since you lose type safety, odd. but sure

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This allows me to test any invalid input a user could pass on the CLI. Those functions are only used for testing purposes.

Copy link

codecov bot commented Apr 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 44.11%. Comparing base (39214eb) to head (640f89a).

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #46      +/-   ##
==========================================
+ Coverage   44.06%   44.11%   +0.05%     
==========================================
  Files          34       34              
  Lines        2115     2117       +2     
==========================================
+ Hits          932      934       +2     
  Misses       1139     1139              
  Partials       44       44              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@fmorency fmorency merged commit 4c2db02 into liftedinit:main Apr 19, 2024
14 checks passed
@fmorency fmorency deleted the more-tests branch April 19, 2024 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants