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

Improve UndefinedOr and tests #25

Merged
merged 1 commit into from
Aug 27, 2023
Merged

Improve UndefinedOr and tests #25

merged 1 commit into from
Aug 27, 2023

Conversation

Jonxslays
Copy link
Owner

Summary

This PR adds more test coverage. Not all the way there but solid enough for the first release.

It also improves the usage of UndefinedOr:

  • No longer store the value in an Option when present.
  • Remove Deref implementation in favor of a new method pub fn inner(&self) -> Option<&T>.

Checklist

  • I have run cargo test and all tests pass.
  • I have run cargo fmt and the code is formatted.
  • I have run cargo clippy in pedantic mode and refactored.
  • I have included documentation for any new structs or methods.
  • I have updated tests for any code I addded/changed/deleted.
  • I have updated the CHANGELOG to include my changes.

Related Issues

@Jonxslays Jonxslays added enhancement New feature or request testing Related to unit or integration tests labels Aug 27, 2023
@Jonxslays Jonxslays merged commit 6311cb1 into master Aug 27, 2023
12 checks passed
@Jonxslays Jonxslays deleted the issue/23/tests branch August 27, 2023 01:38
Jonxslays pushed a commit that referenced this pull request Aug 27, 2023
* Adding some docs, fixes teams to workspacs

* style(CreateKey.tsx): remove trailing whitespace
style(page.tsx): remove trailing whitespace
style(client.tsx): remove unused imports and trailing whitespace

---------

Co-authored-by: James Perkins <jamesperkins@hey.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request testing Related to unit or integration tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add more test coverage before initial release
1 participant