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

fix: add ValidateHttpRequestSync method for synschronous request validation #80

Merged
merged 3 commits into from
May 4, 2024

Conversation

commoddity
Copy link
Contributor

Implements the feature requested in: #79

Copy link

codecov bot commented May 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.72%. Comparing base (6b93301) to head (d472bc3).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #80   +/-   ##
=======================================
  Coverage   99.71%   99.72%           
=======================================
  Files          19       19           
  Lines        1771     1808   +37     
=======================================
+ Hits         1766     1803   +37     
  Misses          5        5           
Flag Coverage Δ
unittests 99.72% <100.00%> (+<0.01%) ⬆️

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.

@daveshanley
Copy link
Member

Missing a few lines of coverage, as soon as it's bumped, I can merge this in!

@commoddity
Copy link
Contributor Author

Missing a few lines of coverage, as soon as it's bumped, I can merge this in!

Thank you. Have just pushed a commit that I believe should cover those 3 missing lines.

Copy link
Member

@daveshanley daveshanley left a comment

Choose a reason for hiding this comment

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

Looks good to me, if you remove that print statement on line 25 in validate_body.go then it's good to go!

@commoddity
Copy link
Contributor Author

Looks good to me, if you remove that print statement on line 25 in validate_body.go then it's good to go!

Sounds good, I've updated to remove that print.

Copy link
Member

@daveshanley daveshanley left a comment

Choose a reason for hiding this comment

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

LGTM!

@daveshanley daveshanley merged commit 6a51b95 into pb33f:main May 4, 2024
3 checks passed
@commoddity commoddity deleted the validate-http-req-sync branch May 6, 2024 09:41
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