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

Re: Micro Mocking: using local to help test subs

by chromatic (Archbishop)
on Jan 13, 2003 at 17:25 UTC ( #226524=note: print w/ replies, xml ) Need Help??


in reply to Micro Mocking: using local to help test subs

I've been meaning to write Test::MockPackage (or Test::MockModule) for quite some time now. It'd be handy to gather the most common idioms:

  • always return this value
  • return a series of values on subsequent calls
  • always return true/false
  • execute this sub
  • log the call


Comment on Re: Micro Mocking: using local to help test subs

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2014-10-01 08:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (391 votes), past polls