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

Refactor test server to support writing raw response data #366

Merged
merged 5 commits into from
Dec 6, 2021

Conversation

sagebind
Copy link
Owner

@sagebind sagebind commented Dec 6, 2021

This is needed to test HTTP/0.9 responses, and is also generally useful. The mock! macro also now allows easily defining multiple responses based on the request.

@codecov
Copy link

codecov bot commented Dec 6, 2021

Codecov Report

Merging #366 (2bf06f8) into master (053a927) will decrease coverage by 0.00%.
The diff coverage is 97.29%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #366      +/-   ##
==========================================
- Coverage   79.38%   79.37%   -0.01%     
==========================================
  Files          51       51              
  Lines        3061     3060       -1     
==========================================
- Hits         2430     2429       -1     
  Misses        631      631              
Impacted Files Coverage Δ
tests/auth.rs 100.00% <ø> (ø)
tests/proxy.rs 71.87% <75.00%> (ø)
tests/headers.rs 97.47% <100.00%> (-0.03%) ⬇️
tests/methods.rs 100.00% <100.00%> (ø)
tests/metrics.rs 100.00% <100.00%> (ø)
tests/net.rs 92.42% <100.00%> (ø)
tests/redirects.rs 100.00% <100.00%> (ø)
tests/request_body.rs 100.00% <100.00%> (ø)
tests/response_body.rs 100.00% <100.00%> (ø)
tests/status.rs 100.00% <100.00%> (ø)
... and 1 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 053a927...2bf06f8. Read the comment docs.

@sagebind sagebind merged commit b886d3c into master Dec 6, 2021
@sagebind sagebind deleted the testserver-refactor branch December 6, 2021 03:38
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.

None yet

1 participant