Comments (7)
Unfortunately, there is no way to do this at the moment. I will leave this ticket open as a reminder that this should be done.
from devel--cover.
Actually, the more general issue is how to mark a "block" as uncoverable. For example, if there is an IF statement and you're normally never going to be able to execute the ELSE because that's only for when things go horribly wrong, (presently) you have to mark each statement in the ELSE as uncoverable. It'd be really nice to be able to do "uncoverable block" and that would hold for all statements/branches/conditions from there until the closing brace of the block that the directive is in. So in my example, we'd put it at the top just under/after the opening brace and all would be good. :)
Now that it's over 3 years later, I hope you have time to get to this soon. :)
from devel--cover.
Seems like # uncoverable subroutine
does this?
See http://search.cpan.org/~pjcj/Devel-Cover-1.29/lib/Devel/Cover.pm#Subroutines
from devel--cover.
from devel--cover.
I read this as "All statements shall be treated as uncoverable, if the first statement already is uncoverable."
But "uncoverable subroutine" should have the desired effect already, no?
Or does this have no effect? Is it just a comment?
I'm confused.
from devel--cover.
I mean, any statement in a block following an uncoverable statement should be uncoverable. (Unless there is a goto present.)
from devel--cover.
See more analysis in #212
from devel--cover.
Related Issues (20)
- cpancover.com: link to distribution on MetaCPAN HOT 1
- Coverage is merged to one file if there are two files with exactly the same content HOT 1
- Marking a covered line uncoverable can make it count as uncovered HOT 6
- Anonymous block shows first line not covered HOT 2
- Can't use Devel::Cover for pkg_add on OpenBSD HOT 4
- Feature Request: Comments to specify code intended to be covered by test HOT 1
- Convert Devel-Cover db to lcov data format HOT 2
- cover -add_uncoverable_point: Use of uninitialized value $_ in split HOT 2
- Silent mode doesn't suppress "Deleting old coverage for changed file" message HOT 2
- Perl 5.38 method is ignored HOT 1
- Feature request: Record stack trace for selected files/lines
- Really questionable design decision when target in @INC HOT 7
- How do I get debug output from Cover.xs? HOT 2
- Nothing new on cpancover.com since October HOT 1
- Feature to add completely uncovered files to the coverage report HOT 1
- t/e2e/adbm_cond.t fails (if DBM::Deep is installed?) HOT 2
- Devel::Cover with Module::Build::Tiny triggers Unknown option: extra_compiler_flags extra_linker_flags
- Add https: support to cpancover.com HOT 1
- Questionable decision to include perl CORE headers in coverage report
- t/e2e/acond_xor.t: Test failures triggered by change in B::Deparse in Perl blead
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from devel--cover.