Skip to content

Conversation

@bgrozev
Copy link
Member

@bgrozev bgrozev commented Jun 11, 2025

No description provided.

@codecov
Copy link

codecov bot commented Jun 11, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (master@f9d69e3). Learn more about missing BASE report.
Report is 1 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #146   +/-   ##
=========================================
  Coverage          ?   42.27%           
  Complexity        ?      267           
=========================================
  Files             ?       59           
  Lines             ?     2474           
  Branches          ?      338           
=========================================
  Hits              ?     1046           
  Misses            ?     1354           
  Partials          ?       74           
Files with missing lines Coverage Δ
src/main/kotlin/org/jitsi/utils/TemplatedUrl.kt 100.00% <100.00%> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f9d69e3...90d0466. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

}
}
should("throw an exception when the URI is invalid") {
val templatedUrl = TemplatedUrl("https://example.com/{{}}")
Copy link
Member

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")
Copy link
Member

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

@bgrozev bgrozev merged commit 16ddce7 into master Jun 16, 2025
7 checks passed
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.

3 participants