Skip to content

Conversation

@fuyuwei01
Copy link
Contributor

No description provided.

@codecov
Copy link

codecov bot commented Oct 27, 2025

Codecov Report

❌ Patch coverage is 81.81818% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 19.85%. Comparing base (9b8cfec) to head (d628c92).

Files with missing lines Patch % Lines
...n/java/com/tencent/polaris/api/utils/TrieUtil.java 81.81% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main     #660      +/-   ##
============================================
+ Coverage     19.79%   19.85%   +0.05%     
- Complexity      946      950       +4     
============================================
  Files           375      375              
  Lines         15598    15607       +9     
  Branches       1998     2001       +3     
============================================
+ Hits           3088     3099      +11     
  Misses        12125    12125              
+ Partials        385      383       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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

// 跳过第一个为空的str
TrieNode<String> node = root;
// 一些场景下(例如dubbo的接口名是com.tencent.polaris.serviceName),apiPath 不以"/"开头和分割,则直接构造node
if (apiPaths.length == 1) {
Copy link
Member

Choose a reason for hiding this comment

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

如果path是/,那么apiPaths是什么样的?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

apiPaths.length为0,仅返回根节点

Copy link
Contributor Author

Choose a reason for hiding this comment

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

这里会有个情况是,/path会和path生成同样的树结构。

Copy link
Member

Choose a reason for hiding this comment

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

需要补充多点单测用例,来保证正确。

// 跳过第一个为空的str
TrieNode<String> node = root;
// 一些场景下(例如dubbo的接口名是com.tencent.polaris.serviceName),apiPath 不以"/"开头和分割,则直接构造node
if (apiPaths.length == 1) {
Copy link
Member

Choose a reason for hiding this comment

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

需要补充多点单测用例,来保证正确。

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