Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Simulating the Futureby dynamo (Chaplain) |
on Jan 04, 2008 at 18:55 UTC ( [id://660449]=perlquestion: print w/replies, xml ) | Need Help?? |
dynamo has asked for the wisdom of the Perl Monks concerning the following question:
Greetings monkii,
I've written some mod_perl code that will execute conditionally after a certain time(). I'd like to be able to make sure that it works. Is there a well-tested method out there to have my code get a faked time value when it asks? I've looked at Time::Warp, and it seems like overkill to get xs involved. That would give the verification process itself considerably more risk of regression than the very simple change I'm testing for. Ideally I'd like to do something outside the normal codebase, such as adding in a module on the command line. btw - Changing the real system time is not an option. Other processes can (and must) handle the truth.
Thanks in advance,
Back to
Seekers of Perl Wisdom
|
|