Skip to content

Conversation

@GautamBytes
Copy link
Contributor

This PR adds unit tests for the FilterHttpRouteMatch function in pkg/util/slices_utils.go.

The tests verify the filtering logic against various scenarios, including matching by headers and paths, ensuring the function behaves as expected and preventing future regressions.

@kruise-bot kruise-bot requested review from FillZpp and veophi July 13, 2025 19:44
@kruise-bot
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign fillzpp for approval by writing /assign @fillzpp in a comment. For more information see:The Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@GautamBytes
Copy link
Contributor Author

@hantmac please review it whenever feasible!

Signed-off-by: GautamBytes <[email protected]>
@GautamBytes GautamBytes force-pushed the add-ut-for-slice-utils branch from 329a617 to 2cde12e Compare August 13, 2025 18:09
@codecov
Copy link

codecov bot commented Aug 13, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 47.59%. Comparing base (00aae12) to head (2cde12e).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #290      +/-   ##
==========================================
+ Coverage   47.52%   47.59%   +0.07%     
==========================================
  Files          63       63              
  Lines        9799     9799              
==========================================
+ Hits         4657     4664       +7     
+ Misses       4585     4578       -7     
  Partials      557      557              
Flag Coverage Δ
unittests 47.59% <ø> (+0.07%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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.

@GautamBytes
Copy link
Contributor Author

#288 (comment)
same here !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants