XP is just a number | |
PerlMonks |
[Solved] Parameter injection for testingby davies (Prior) |
on Aug 24, 2022 at 14:43 UTC ( [id://11146368]=perlquestion: print w/replies, xml ) | Need Help?? |
davies has asked for the wisdom of the Perl Monks concerning the following question: I am trying to write a modulino that will accept various parameters through GetOpt::Long. I want to write unit tests for subs that will behave differently depending on the parameters. A SSCCE modulino and test file demonstrate the problem. The modulino:
Tests:
The first test passes but the second fails. I have tried all sorts of variations including Exporter and local, but using the debugger tells me every time that the address used in the test code differs from the address of the parameter in the modulino. All clues gratefully received. Regards, John Davies
Back to
Seekers of Perl Wisdom
|
|