Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Test::Pod::Coverage fails on constant

by astroboy (Chaplain)
on Mar 02, 2010 at 03:18 UTC ( #826059=perlquestion: print w/replies, xml ) Need Help??
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 (Pope) 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.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://826059]
Approved by GrandFather
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2018-05-23 04:58 GMT
Find Nodes?
    Voting Booth?