Skip to content
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

testutil: fixed promrated.go #2815

Merged
merged 2 commits into from
Jan 24, 2024
Merged

testutil: fixed promrated.go #2815

merged 2 commits into from
Jan 24, 2024

Conversation

pinebit
Copy link
Contributor

@pinebit pinebit commented Jan 23, 2024

Fixing promrated.go (resolving TODOs).

category: misc
ticket: none

Copy link

codecov bot commented Jan 23, 2024

Codecov Report

Attention: 4 lines in your changes are missing coverage. Please review.

Comparison is base (f40ea19) 53.30% compared to head (4ea0873) 53.25%.
Report is 2 commits behind head on main.

Files Patch % Lines
testutil/promrated/promrated.go 42.85% 3 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2815      +/-   ##
==========================================
- Coverage   53.30%   53.25%   -0.06%     
==========================================
  Files         199      199              
  Lines       27700    27705       +5     
==========================================
- Hits        14765    14753      -12     
- Misses      11103    11125      +22     
+ Partials     1832     1827       -5     

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

cmd/cmd.go Outdated
// passwords in valid URLs provided in ".*address.*" flags and redacting auth tokens.
func redact(flag, val string) string {
func Redact(flag, val string) string {
Copy link
Contributor

@dB2510 dB2510 Jan 23, 2024

Choose a reason for hiding this comment

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

nit: can just copy this function to testutil/promrated/promrated.go as this not a "big" function rather than importing whole cmd package to promrated. We don't use anything else from cmd package, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agreed, copied with slight modification.

Copy link

sonarcloud bot commented Jan 24, 2024

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@pinebit pinebit added the merge when ready Indicates bulldozer bot may merge when all checks pass label Jan 24, 2024
@obol-bulldozer obol-bulldozer bot merged commit 84b9457 into main Jan 24, 2024
14 checks passed
@obol-bulldozer obol-bulldozer bot deleted the pinebit/fixed-promrated branch January 24, 2024 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge when ready Indicates bulldozer bot may merge when all checks pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants