Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Micro Mocking: using local to help test subs

by chromatic (Archbishop)
on Jan 13, 2003 at 17:25 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://226524]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2024-04-19 04:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found