-
Notifications
You must be signed in to change notification settings - Fork 378
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
feat: clean up gnokey add
+ add coverage
#1212
feat: clean up gnokey add
+ add coverage
#1212
Conversation
A disturbing amount of our Here is an example for gnokey add, notice the uncovered lines. We have 2 options here:
cc @gfanton and @ajnavarro for opinions |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1212 +/- ##
==========================================
+ Coverage 47.54% 47.82% +0.28%
==========================================
Files 388 393 +5
Lines 61242 61633 +391
==========================================
+ Hits 29117 29479 +362
- Misses 29686 29687 +1
- Partials 2439 2467 +28 ☔ View full report in Codecov by Sentry. |
I would say option 1 |
I'm in favor of using option 2, i've recently implemented some tests for |
Regarding the discussion on testing, it is related to #1215. By the way, why not add a |
I wanted to make this helper super accessible as a standalone call, and didn't want to pack in the functionality on |
Added a unit test that calls |
LGTM for the implem, but looking for @jaekwon's opinion on the API, specifically this discussion: #1212 (comment) |
gnokey derive
gnokey add --derive-accounts
I've marked this PR as draft, as I want to completely clean up our Will take this up in parallel, and ping you once it's ready for viewing 🙏 |
Current status: I'm reworking this PR to clean up Currently pending tests |
gnokey add --derive-accounts
gnokey add
+ add coverage
@gfanton @ajnavarro @moul |
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.
Looks good 👍 !
@zivkovicmilos, some tests fail when the |
Description
This PR initially started out as adding support for account derivation to
gnokey add
. However, over the discussions, it turned into a bigger cleanup of thegnokey add
subcommand suite.Changes done:
gnokey add ledger
gnokey add multisig
gnokey add bech32
--derive-path
flag to the basegnokey add
(original functionality of the PR)Contributors' checklist...
BREAKING CHANGE: xxx
message was included in the description