covert-encryption / covert

An encryption format offering better security, performance and ease of use than PGP. File a bug if you found anything where we are worse than our competition, and we will fix it.
41 stars 10 forks source link

Minor cleanup of CLI main #62

Closed covert-encryption closed 2 years ago

covert-encryption commented 2 years ago

Made the main function always sys.exit() - NoReturn - and with different exit status code for different errors. Cleaned up the CLI tests by implementing a helper fixture 'covert', that calls the main function.

codecov[bot] commented 2 years ago

Codecov Report

Merging #62 (ada3b20) into main (c51663c) will increase coverage by 0.69%. The diff coverage is 69.23%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #62      +/-   ##
==========================================
+ Coverage   62.74%   63.43%   +0.69%     
==========================================
  Files          17       17              
  Lines        1997     1991       -6     
  Branches      454      448       -6     
==========================================
+ Hits         1253     1263      +10     
+ Misses        606      593      -13     
+ Partials      138      135       -3     
Impacted Files Coverage Δ
covert/blockstream.py 79.59% <ø> (-0.11%) :arrow_down:
covert/__main__.py 74.38% <63.63%> (+11.68%) :arrow_up:
covert/passphrase.py 59.72% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update c51663c...ada3b20. Read the comment docs.