Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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 surveying the Monastery: (2)
As of 2014-09-23 02:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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











    Results (210 votes), past polls