-
Notifications
You must be signed in to change notification settings - Fork 0
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
Figure out a way to mark things as unreachable by unit tests #11
Comments
|
\o/ |
The current code makes me believe it would be expected to have this in a macro, rather than a comment. I would expect something along the lines of:
but we have to double check with the Tor team. I assume the macro would expand to Who wants to start the conversation? ;) |
Good point. |
Reinaldo, not sure I understand your point. What is the reason for having this be in macro's instead of in a comment? |
Specifically, I think using macros for this is a bad idea, since macros usually have functional impliciations, while these things are specifically non-functional annotations. |
My reasoning is to abstract the tool we are using. Tor source code names their existing macros ad COVERAGE_ENABLED (and For this reason, I suggested to double check with the community before |
OK, I accept that reasoning. =) |
however. that depends on whether LCOV expands macros or not when looking for those names |
Put it into macro could be a place where the coverage tool never goes to, I would prefer a trial before we say it's a solution or not. |
I think my "proposal" is not feasible. "The C preprocessor converts comments to whitespace before macros are even considered"[1] |
https://trac.torproject.org/projects/tor/ticket/16792
The text was updated successfully, but these errors were encountered: