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

fix: add compare UUID with UUID string #406

Merged
merged 1 commit into from
Oct 25, 2023
Merged

fix: add compare UUID with UUID string #406

merged 1 commit into from
Oct 25, 2023

Conversation

halber
Copy link
Contributor

@halber halber commented Oct 24, 2023

No description provided.

@halber halber requested a review from a team as a code owner October 24, 2023 11:41
@halber halber force-pushed the fix/odata_UUID branch 2 times, most recently from b5756fe to 9a1765a Compare October 24, 2023 12:10
@sonarqubecloud
Copy link

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 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Arguments.of(null, uuid1, uuid1, EdmPrimitiveTypeKind.Guid, "ID", 0),
Arguments.of(null, uuid1, uuid1.toString(), EdmPrimitiveTypeKind.Guid, "ID", 0),
Arguments.of(null, uuid1, uuid2, EdmPrimitiveTypeKind.Guid, "ID", -1),
Arguments.of(null, uuid2, uuid1.toString(), EdmPrimitiveTypeKind.Guid, "ID", 1));

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

only UUID instances are compared here. Isn't it better to have the UUID and String comparison covered as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In line 79 and 81 I use uuid1.toString(). Is this not what you mean?

@halber halber merged commit 559342a into main Oct 25, 2023
9 checks passed
@halber halber deleted the fix/odata_UUID branch October 25, 2023 10:43
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.

2 participants