Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

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?

Comment on Test::Pod::Coverage fails on constant
Select or Download Code
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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://826059]
Approved by GrandFather
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (13)
As of 2014-07-28 19:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (207 votes), past polls