[tor-bugs] #16792 [Tor]: Have a way to mark lines as "unreachable by unit tests"
Tor Bug Tracker & Wiki
blackhole at torproject.org
Tue Sep 8 21:49:49 UTC 2015
#16792: Have a way to mark lines as "unreachable by unit tests"
-----------------------------+--------------------------------
Reporter: nickm | Owner: nickm
Type: enhancement | Status: accepted
Priority: normal | Milestone: Tor: 0.2.8.x-final
Component: Tor | Version:
Resolution: | Keywords: SponsorS, testing
Actual Points: | Parent ID:
Points: |
-----------------------------+--------------------------------
Comment (by tdruiva):
> I don't see the point in using macros here; they don't seem any cleaner
than LCOV stuff, right?
Yeah, you're right.
Other point about these lcov exclude markers, we can use in a macro style
instead of comment, like
#define LCOV_EXCL_START
#define LCOV_EXCL_STOP
LCOV_EXCL_START
code
.
.
.
LCOV_EXCL_STOP
> (I wonder if any other coverage tools have macros like this that they
would expect us to use, and whether we're about to be littered with
them...)
I'll keep looking
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/16792#comment:6>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list