Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Test::Pod::Coverage fails on constant

by astroboy (Chaplain)
on Mar 02, 2010 at 03:18 UTC ( [id://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 (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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
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?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (3)
As of 2024-03-29 14:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found