mathstuf / rust-keyutils

Rust interface to the Linux keyring
BSD 3-Clause "New" or "Revised" License
17 stars 9 forks source link

api: make updating a key safer #45

Closed mathstuf closed 4 years ago

mathstuf commented 4 years ago

A key must be of a certain type, so request updating to respect that decision. Also add a function to ask whether a key is of a given keytype.

Fixes: #35

codecov[bot] commented 4 years ago

Codecov Report

Merging #45 into master will increase coverage by 0.04%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #45      +/-   ##
==========================================
+ Coverage   86.65%   86.69%   +0.04%     
==========================================
  Files          34       35       +1     
  Lines        2105     2119      +14     
==========================================
+ Hits         1824     1837      +13     
- Misses        281      282       +1     
Impacted Files Coverage Δ
src/api.rs 67.78% <100.00%> (-0.02%) :arrow_down:
src/tests/keytype.rs 100.00% <100.00%> (ø)
src/tests/update.rs 100.00% <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 52cd03f...7441ec5. Read the comment docs.