-
Notifications
You must be signed in to change notification settings - Fork 25
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
Add UUID Validator and its unit tests #128
Add UUID Validator and its unit tests #128
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we change the name "TestFixture" to some meaningful name. One of the reason is to have meaningful name is to provide flexibility to run specific set of testcases by applying filters and not the whole up-cpp project testcases.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few more small comments. The minor things don't need to be done, but they'd be nice.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks good, when dealing with bitmasks and shift values, I tend to try to single source that code as much as possible in the hopes of reducing mistakes. See inline comments.
a914e6a
to
57b50e2
Compare
This PR adds UUID validator for uprotocol uuid v8 Constexpr and internal method are implemented to extract right fields of uuid by bitshifting. Time arithmetic is done on chrono literals
57b50e2
to
936dae4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the changes, looks great!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Requested changes complete, code looks good, commit message and history clean. Approved.
This PR intends to add UUID validator, and it's unit tests in eclipse up-cpp