Skip to content

test: add unit tests for str SanitizeLabelName#8460

Open
archy-rock3t-cloud wants to merge 1 commit intoenvoyproxy:mainfrom
sophotechlabs:test/str-sanitize-label-coverage
Open

test: add unit tests for str SanitizeLabelName#8460
archy-rock3t-cloud wants to merge 1 commit intoenvoyproxy:mainfrom
sophotechlabs:test/str-sanitize-label-coverage

Conversation

@archy-rock3t-cloud
Copy link
Contributor

What type of PR is this?

test: add unit tests for label name sanitization

What this PR does / why we need it:

Adds table-driven unit tests for SanitizeLabelName in internal/utils/str. Covers empty input, valid labels, and replacement of hyphens, dots, mixed special characters, and spaces.

Which issue(s) this PR fixes:

N/A — test coverage improvement

Release Notes: No

Signed-off-by: Artem Muterko <artem@sopho.tech>
@archy-rock3t-cloud archy-rock3t-cloud requested a review from a team as a code owner March 9, 2026 12:10
@netlify
Copy link

netlify bot commented Mar 9, 2026

Deploy Preview for cerulean-figolla-1f9435 ready!

Name Link
🔨 Latest commit 08e1689
🔍 Latest deploy log https://app.netlify.com/projects/cerulean-figolla-1f9435/deploys/69aeb8ad8b48c100084e44be
😎 Deploy Preview https://deploy-preview-8460--cerulean-figolla-1f9435.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@codecov
Copy link

codecov bot commented Mar 9, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 74.16%. Comparing base (80eb3f9) to head (08e1689).
⚠️ Report is 30 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8460      +/-   ##
==========================================
- Coverage   74.18%   74.16%   -0.03%     
==========================================
  Files         242      242              
  Lines       37310    37579     +269     
==========================================
+ Hits        27678    27870     +192     
- Misses       7698     7769      +71     
- Partials     1934     1940       +6     

☔ 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

1 participant