-
Notifications
You must be signed in to change notification settings - Fork 39
feat: Add a URL template utility. #146
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
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #146 +/- ##
=========================================
Coverage ? 42.27%
Complexity ? 267
=========================================
Files ? 59
Lines ? 2474
Branches ? 338
=========================================
Hits ? 1046
Misses ? 1354
Partials ? 74
Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
| } | ||
| } | ||
| should("throw an exception when the URI is invalid") { | ||
| val templatedUrl = TemplatedUrl("https://example.com/{{}}") |
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.
I take it this is relying on the fact than an unquoted { or } isn't valid anywhere in a URI?
|
|
||
| // Original template should not have the param saved | ||
| templatedUrl.set("param", "permanent") | ||
| templatedUrl.resolve() shouldBe URI("https://example.com/api?param=permanent") |
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.
I think this test would be more meaningful if you called the set of permanent before the resolve with temp
No description provided.