Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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 rifling through the Monastery: (4)
As of 2014-10-21 02:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (95 votes), past polls