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

✅ round trip test, less rewrap #42

Merged
merged 3 commits into from
May 3, 2022
Merged

Conversation

dmihalcik-virtru
Copy link
Member

@dmihalcik-virtru dmihalcik-virtru commented Apr 26, 2022

  • Adds a round-trip test for nanotdf encrypt/decrypt
  • like the 'roundtrip' tests in tdf3-js, this mocks out the entirety of the key rewrap mechanism, which is arguably the harder bit
  • removes the unused unwrappedKey field. Really, we need to do an audit to make this more functional overall and less state-preserving
  • Adds back source maps for better error reports.
  • We should build on top of this somehow to add more coverage of unusual situations

@dmihalcik-virtru dmihalcik-virtru requested a review from a team as a code owner April 26, 2022 01:44
@dmihalcik-virtru
Copy link
Member Author

Comparison of coverage numbers:
Before:
image

After:
image

@dmihalcik-virtru
Copy link
Member Author

I'm guessing line coverage went down since I turned on source maps, which probably could include a bunch of typescript declarations?

ysizarie-virtru
ysizarie-virtru previously approved these changes May 3, 2022
danielRicaud
danielRicaud previously approved these changes May 3, 2022
- like the 'roundtrip' tests in tdf3-js, this mocks out the entirety of the key rewrap mechanism, which is arguably the harder bit
- removes the unused unwrappedKey field. Really, we need to do an audit to make this more functional overall and less state-preserving
@sonarqubecloud
Copy link

sonarqubecloud bot commented May 3, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 2 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@dmihalcik-virtru dmihalcik-virtru merged commit 000abce into main May 3, 2022
@dmihalcik-virtru dmihalcik-virtru deleted the feature/complete-test branch May 3, 2022 21:09
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.

3 participants