Sprinkle if (exists $INC{'Test/More.pm'}) (or whatever test module you are using) tests through your code as required.
That doesn't tell you if the code was actually called in a test context, but it does tell you if the test environment is loaded.
In reply to Re: How to make a module aware it is being tested?
by GrandFather
in thread How to make a module aware it is being tested?
by CountZero
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |