chore: Improve addOptions implementation#3998
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #3998 +/- ##
==========================================
- Coverage 93.52% 93.51% -0.02%
==========================================
Files 207 207
Lines 17597 17596 -1
==========================================
- Hits 16458 16455 -3
- Misses 938 939 +1
- Partials 201 202 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
addOptions implementation
gmlewis
left a comment
There was a problem hiding this comment.
Thank you, @alexandear!
LGTM.
Awaiting second LGTM+Approval from any other contributor to this repo before merging.
stevehipwell
left a comment
There was a problem hiding this comment.
The code change looks good. Is there a reason for the removal of the tests with no replacement?
My bad. Thanks. I thought that |
|
Thank you, @stevehipwell! |
This PR refactors
addOptionsto accept only a struct pointer ornilas theoptsparameter. CallingaddOptions(u, "")is now rejected at compile time (seeTestAddOptions_QueryValues). It was unnecessary anyway and is not used in the codebase.TestListSCIMProvisionedIdentitiesOptions_addOptionscallstestAddURLOptionsto verify thataddOptionsworks properly. However, this is redundant and inconsistent with other unit tests, so it can be replaced withTestSCIMService_ListSCIMProvisionedIdentities.We now use generics instead of
reflect. But this doesn't improve performance; it remains the same.Benchmarks