Nadim Khemir wrote:
How do you plan to test things like:
my $url_base = "http://search.cpan.org/" ;
for my $rest (qw(modlist/Graphics modlist/Database_Interfaces))
{
do_anything_with($ur_base . $rest);
}
Well, if it's in a verbatim block, then "http://search.cpan.org/" would
get tested. If it's in the code, then since this is a POD test it
wouldn't get touched - to my mind, that's kind of up to your own test suite.
In the verbatim block, it's still not testing what you want. I could
certainly provide a mechanism for specifying additional URLs for
testing. In fact, I suspect
=for test-pod-uri http://search.cpan.org/modlist/Graphics
would Just Work given the implementation I'm thinking of. Not ideal to
have the URLs duplicated, but I can't think of a (sane) way to do
anything else.
Ian