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

core: using url.ParseRequestURI #2832

Merged
merged 1 commit into from
Jan 29, 2024
Merged

Conversation

pinebit
Copy link
Contributor

@pinebit pinebit commented Jan 26, 2024

Replacing url.Parse with url.ParseRequestURI where appropriate.

category: refactor
ticket: #2796

Copy link

sonarcloud bot commented Jan 26, 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

Copy link

codecov bot commented Jan 26, 2024

Codecov Report

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

Comparison is base (a44f4dc) 53.22% compared to head (eee1fa4) 53.16%.

Files Patch % Lines
app/eth2wrap/httpwrap.go 50.00% 1 Missing ⚠️
p2p/bootnode.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2832      +/-   ##
==========================================
- Coverage   53.22%   53.16%   -0.06%     
==========================================
  Files         200      200              
  Lines       27705    27705              
==========================================
- Hits        14745    14730      -15     
- Misses      11131    11143      +12     
- Partials     1829     1832       +3     

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

"github.com/stretchr/testify/require"
)

func MustParseURL(t *testing.T, rawURL string) *url.URL {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why wrap both Parse and ParseRequestURI?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Depends on the tests. Some rely on url.Parse while some on url.ParseRequestURI.

@pinebit pinebit added the merge when ready Indicates bulldozer bot may merge when all checks pass label Jan 29, 2024
@obol-bulldozer obol-bulldozer bot merged commit 0e79a55 into main Jan 29, 2024
12 checks passed
@obol-bulldozer obol-bulldozer bot deleted the pinebit/url-parse-request-uri branch January 29, 2024 10:37
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.

3 participants