-
Notifications
You must be signed in to change notification settings - Fork 3
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
codegen conditional on hasmethod #18
Conversation
Currently passing everything except precompilation. Here's the error: caching with precompilation: Test Failed at /home/chad/git/KeywordCalls/test/runtests.jl:86
Expression: Precompile2.test() == (a = 2, b = 1)
Evaluated: (b = 1, a = 2) == (a = 2, b = 1)
Stacktrace:
[1] macro expansion
@ ~/git/KeywordCalls/test/runtests.jl:86 [inlined]
[2] macro expansion
@ /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Test/src/Test.jl:1151 [inlined]
[3] top-level scope
@ ~/git/KeywordCalls/test/runtests.jl:86
Test Summary: | Fail Total
caching with precompilation | 1 1
ERROR: LoadError: Some tests did not pass: 0 passed, 1 failed, 0 errored, 0 broken.
in expression starting at /home/chad/git/KeywordCalls/test/runtests.jl:85
ERROR: Package KeywordCalls errored during testing |
Codecov Report
@@ Coverage Diff @@
## master #18 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 1 1
Lines 42 61 +19
=========================================
+ Hits 42 61 +19
Continue to review full report at Codecov.
|
Think it's working, what do you think @mileslucas ? |
There was a problem hiding this 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. The only catch I can think of is the case where someone has defined e.g., foo(::NamedTuple)
outside of the @kwcall
macro. Basically hasmethod
has no way to know who wrote the preceding method. I think that's fair, especially if its pointed out somewhere in the docs.
Great point, I've updated the docstrings |
No description provided.