GrandFather has asked for the wisdom of the Perl Monks concerning the following question:
I'm writing a test suite to check code that is (among other things) parsing an email then using the parse result to generate another email as part of an email driven build system. The generated email will be sent using:
my $msg = MIME::Lite->new (%params); my $result = eval {$msg->send};
How can I check the contents of %params is as I expect from the test code without instrumenting the module under test in some fashion? %params is local to the sub that is setting up for sending the message btw.
I'm using Test::More as the tests framework and for current tests am simply using ok (...).
Update: clean up phrasing that confused bobf and probably others (that's what you get for posting in a hurry before leaving work). :-)
|
|---|