Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Does Pod::Coverage::Moose work or am I just being obtuse?

by Khen1950fx (Canon)
on Feb 23, 2010 at 13:21 UTC ( #824862=note: print w/replies, xml ) Need Help??


in reply to Does Pod::Coverage::Moose work or am I just being obtuse?

I ran the tests, and they passed. I ran this script to see if it was working or not. I tested it with all the handles. The only one that really didn't work was why_unrated.
#!/usr/bin/perl use strict; use warnings; use Pod::Coverage::Moose; my @mods = ( 'Moose', 'Pod::Coverage::Moose', 'Moose::Test', 'MooseX::Types', 'Moose::Micro', 'MooseX::Method' ); foreach my $mod (@mods) { my $pcm = Pod::Coverage::Moose->new( package => $mod ); print 'Coverage: ', $pcm->coverage, "\n"; }

Replies are listed 'Best First'.
Re^2: Does Pod::Coverage::Moose work or am I just being obtuse?
by Your Mother (Bishop) on Feb 23, 2010 at 18:00 UTC

    Thanks but even stripping it down to not running through Test::Pod::Coverage is still not behaving as I'd expect from the docs. This is the plain PCM behavior-

    perl -MPod::Coverage::Moose -le '$pcm = Pod::Coverage::Moose->new(pack +age => "IsMoose"); print $pcm->uncovered' # Prints nothing...

    I expect it to show moo and cow both as uncovered. :( I really like the idea of this module and I'd love to be able to get it to give "real" feedback about Moose attributes/methods.

      I been experimenting with this all day. What has been happening, for me at least, is that I've been adding things that I knew were covered then I'd call $pcm->covered. The module prints out all the methods that are covered and returns 1. On the other hand, when I call $pcm->uncovered on the things I knew to be uncovered, the module returned undef---it didn't print. I was expecting it to return the uncovered handles. The joys of "PEBKAC hell":).

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2020-08-13 17:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which rocket would you take to Mars?










    Results (74 votes). Check out past polls.

    Notices?