Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: When 100% Code Coverage Backfires

by Ovid (Cardinal)
on Mar 26, 2007 at 13:33 UTC ( #606576=note: print w/replies, xml ) Need Help??


in reply to Re: When 100% Code Coverage Backfires
in thread When 100% Code Coverage Backfires

Depends upon how one goes about it. I prefer to use Test::MockModule when I have something external I don't want to run or I have arguments I want to capture. In this case, it's reasonably to use it in addition to running the Data::Record code. However, that means that your mocked method would then be behaving in a way that it's impossible for the code to behave. I'm not sure how that's a win over providing asserts.

Cheers,
Ovid

New address of my CGI Course.

  • Comment on Re^2: When 100% Code Coverage Backfires

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2022-08-09 01:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?