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 error messages in @ require precondition testing macro #753

Merged
merged 1 commit into from
Sep 15, 2021

Conversation

c42f
Copy link
Contributor

@c42f c42f commented Sep 14, 2021

With a little hackery we can extract the function name from the internal
#self# without the need to pattern match backtraces.

Copies fixes from JuliaWeb/URIs.jl#33

With a little hackery we can extract the function name from the internal
`#self#` without the need to pattern match backtraces.

Copies fixes from JuliaWeb/URIs.jl#33
@codecov-commenter
Copy link

codecov-commenter commented Sep 14, 2021

Codecov Report

Merging #753 (b2f1d9b) into master (03749a4) will increase coverage by 0.75%.
The diff coverage is 93.33%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #753      +/-   ##
==========================================
+ Coverage   76.84%   77.59%   +0.75%     
==========================================
  Files          38       38              
  Lines        2513     2557      +44     
==========================================
+ Hits         1931     1984      +53     
+ Misses        582      573       -9     
Impacted Files Coverage Δ
src/debug.jl 80.00% <93.33%> (+33.57%) ⬆️
src/cookies.jl 94.62% <0.00%> (+0.08%) ⬆️
src/sniff.jl 85.61% <0.00%> (+0.09%) ⬆️
src/Parsers.jl 98.11% <0.00%> (+0.13%) ⬆️
src/Streams.jl 96.44% <0.00%> (+0.15%) ⬆️
src/parsemultipart.jl 91.22% <0.00%> (+0.31%) ⬆️
src/Messages.jl 88.27% <0.00%> (+0.33%) ⬆️
src/ConnectionPool.jl 81.60% <0.00%> (+0.33%) ⬆️
src/WebSockets.jl 90.32% <0.00%> (+0.38%) ⬆️
src/parseutils.jl 75.00% <0.00%> (+1.66%) ⬆️
... and 2 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 03749a4...b2f1d9b. Read the comment docs.

@c42f
Copy link
Contributor Author

c42f commented Sep 15, 2021

The test failures here seem due to the ongoing flakiness of the external websockets test host.

Copy link
Member

@fredrikekre fredrikekre left a comment

Choose a reason for hiding this comment

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

These macros are pretty strange IMO, but easier to fix than to rewrite the code that uses them I guess.

@fredrikekre fredrikekre merged commit 81e8fce into master Sep 15, 2021
@fredrikekre fredrikekre deleted the cjf/fix-precondition-error-reporting branch September 15, 2021 07:33
@c42f
Copy link
Contributor Author

c42f commented Sep 15, 2021

Yeah fair comment :-)

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.

3 participants