Giter Site home page Giter Site logo

Comments (7)

pjcj avatar pjcj commented on August 19, 2024

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.

kbrannen avatar kbrannen commented on August 19, 2024

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.

FROGGS avatar FROGGS commented on August 19, 2024

Seems like # uncoverable subroutine does this?
See http://search.cpan.org/~pjcj/Devel-Cover-1.29/lib/Devel/Cover.pm#Subroutines

from devel--cover.

kbrannen avatar kbrannen commented on August 19, 2024

from devel--cover.

FROGGS avatar FROGGS commented on August 19, 2024

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.

FROGGS avatar FROGGS commented on August 19, 2024

I mean, any statement in a block following an uncoverable statement should be uncoverable. (Unless there is a goto present.)

from devel--cover.

pjcj avatar pjcj commented on August 19, 2024

See more analysis in #212

from devel--cover.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.