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

Refactor decrypt function #319

Merged
merged 16 commits into from
Jan 26, 2024
Merged

Refactor decrypt function #319

merged 16 commits into from
Jan 26, 2024

Conversation

jbygdell
Copy link
Contributor

@jbygdell jbygdell commented Jan 5, 2024

Description

  • always prompt for passphrase unless ENV C4GH_PASSWORD is set
  • add --force-overwrite option
  • Expand the test suite to cover logical user actions
  • code simplification

How to test
sda-cli decrypt -key KEY FILE
sda-cli decrypt -key KEY --force-overwrite FILE

@jbygdell jbygdell requested a review from a team January 5, 2024 13:45
@jbygdell jbygdell self-assigned this Jan 5, 2024
Copy link
Contributor

@pahatz pahatz left a comment

Choose a reason for hiding this comment

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

Looks good overall.

@jbygdell jbygdell requested a review from a team January 15, 2024 07:14
@codecov-commenter
Copy link

codecov-commenter commented Jan 26, 2024

Codecov Report

Attention: 8 lines in your changes are missing coverage. Please review.

Comparison is base (1cc370f) 51.06% compared to head (c34b53d) 52.83%.

Files Patch % Lines
decrypt/decrypt.go 50.00% 5 Missing and 3 partials ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #319      +/-   ##
==========================================
+ Coverage   51.06%   52.83%   +1.76%     
==========================================
  Files           9        9              
  Lines        1218     1183      -35     
==========================================
+ Hits          622      625       +3     
+ Misses        522      479      -43     
- Partials       74       79       +5     
Flag Coverage Δ
unittests 52.83% <50.00%> (+1.76%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@jbygdell jbygdell merged commit c85b3b7 into main Jan 26, 2024
6 checks passed
@jbygdell jbygdell deleted the refactor_decrypt branch January 26, 2024 07:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants