tests_extractor: Ignore conditional declaration blocks#249
tests_extractor: Ignore conditional declaration blocks#249wilzbach wants to merge 1 commit intodlang:masterfrom
Conversation
|
Thanks for your pull request, @wilzbach! Bugzilla referencesYour PR doesn't reference any Bugzilla issue. If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog. |
Interesting. So the intent there is just to check if the code compiles, I guess. Generally, in the case of an outlier, it often makes more sense to fix or remove the outlier rather than add a work-around to the tool for that single corner case. Perhaps the example should be converted to one that's both testable automatically and runnable from the website? E.g. by putting some data in a file, then using that file instead of stdin. |
What happened? I didn't see anything in the commit messages there that would close this one. |
No idea.
Same here. |
The summary comment contains: "Fix: #249". |
I'm pretty sure the code wasn't checked as it did not compile -
Good idea -> dlang/phobos#5587 |
Currently the tests extractor looks at all public declarations. There is one instance Phobos (
std.digest.hmac) where this leads to errors.due to the module header example:
this blocks and waits for input on the non-existing input on stdin.