There is no good way to "mock" things except for turning the call you want to 
mock into using a proc variable so that you can override it.

Having said that, old-school functional/procedural programming doesn't need 
much mocking. There is data and there is code, in order to test the code setup 
test data. If setting up test data is too hard that means your data structures 
are in poor shape. ;-)

Reply via email to