http://www.perlmonks.org?node_id=826059

astroboy has asked for the wisdom of the Perl Monks concerning the following question:

Test::Pod::Coverage fails on testing one of my packages on one server but not on another. The code it's barfing on is:

use constant UNIT_MAP => { s => 'seconds', m => 'minutes', h => 'hours', d => 'days' };

And the error is:

not ok 8 - Pod coverage on ETL::Pipeline::File::Watch # Failed test 'Pod coverage on ETL::Pipeline::File::Watch' # at t/pod-coverage.t line 24. # Coverage for ETL::Pipeline::File::Watch is 50.0%, with 1 naked subro +utine: # UNIT_MAP

Both servers have the same versions of Pod::Coverage and Test::Pod::Coverage (0.20 and 1.08 respectively). The server where the test fail uses Perl 5.10.0. The server where it passes is on Perl 5.10.1. Any ideas why the test is failing?

Replies are listed 'Best First'.
Re: Test::Pod::Coverage fails on constant
by ikegami (Patriarch) on Mar 02, 2010 at 03:52 UTC
    There has been changes to how constants are stored. They used to be stored as subs, but that's not always the case anymore.
      Thanks - I'll just add the constant to my ignore list.