https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8088

--- Comment #5 from Sidney Markowitz <sid...@sidney.com> ---
(In reply to Giovanni Bechis from comment #4)
> podchecker.t errors out when Test::Pod is not installed, fixed in r1905889.

I apologize for forgetting to test that case.

What you have matches the way it is shown in the Test::Pod documentation. I got
confused when the way we do it for other tests where we use require instead of
use didn't work.

Can someone with a better understanding of perl explain why when I used
require, podchecker.t got an undefined subroutine error from the use of
all_pod_files_ok at the end (which I understand is an error because require is
done at run time and the error for all_pod_files_ok not defined happens at
compile time), but in t/perlcritic.pl the same things works fine? In
t/perlcritic.pl there is a require Test::Perl::Critic and then at the end a
call to all_critic_ok.

Is there some difference between what t/podchecker.t does and t/perlcritic.pl
that I'm missing? I looked in Test/Pod.pm and Test/Perl/Critic.pm and they seem
to define their subs the same way.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to