Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^4: TDD with Coverage Analysis. Wow.

by davidrw (Prior)
on Aug 27, 2005 at 17:32 UTC ( [id://487169]=note: print w/replies, xml ) Need Help??


in reply to Re^3: TDD with Coverage Analysis. Wow.
in thread TDD with Coverage Analysis. Wow.

I don't see how the second alternative of the || could ever be false (i.e. the coverage would never be 100%).
It can't, but just like with xdg's note about my $value = $some_other_value || undef;, Devel::Cover is also smart enough to realize that DEFAULT_FILENAME is a constant and removes the truth table entries of it being false, so that you can get to 100% coverage for that line.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://487169]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2024-03-19 02:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found