Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

How can I test for Pod coverage of my Moose attributes?

by webfiend (Vicar)
on Aug 06, 2010 at 18:33 UTC ( [id://853459]=perlquestion: print w/replies, xml ) Need Help??

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

Completely forgot how questions were organized on the site, so this is reposted from elsewhere.

I like Test::Pod::Coverage. I like Moose. I like to document all of my public interfaces, including attributes. But Test::Pod::Coverage doesn't seem to know about stuff like the attributes of my Moose objects. I want my pod tests to be really mean, and let me know when I forgot to document anything public.

Is there a way to test for documentation of Moose attributes, or must I let my own absent-minded conscience be my guide?

Update: In my excitement over having a Perl question, I forgot about that great resource called Google. A simple search led me to Pod::Coverage::Moose in about 0.1 seconds, compared to several minutes posting and reposting. Let that be a lesson to the rest of you.

Update Part 2 - The Next Generation As pointed out by Your Mother, not quite. Pod::Coverage::Moose a little buggy on the exact thing I was looking for. So maybe it wasn't such a bad question after all.

  • Comment on How can I test for Pod coverage of my Moose attributes?

Replies are listed 'Best First'.
Re: How can I test for Pod coverage of my Moose attributes?
by Your Mother (Archbishop) on Aug 06, 2010 at 19:02 UTC

      Verified the complete failure to acknowledge attributes. Well, that's disappointing.

Re: How can I test for Pod coverage of my Moose attributes?
by ikegami (Patriarch) on Aug 06, 2010 at 18:52 UTC
    You could also try wrapping the attributes in a BEGIN {} block.
Re: How can I test for Pod coverage of my Moose attributes?
by stvn (Monsignor) on Aug 07, 2010 at 14:57 UTC
    Pod::Coverage::Moose a little buggy on the exact thing I was looking for. So maybe it wasn't such a bad question after all.

    It basically seems like this module is not maintained. It was an early MooseX:: module but several of us in the Moose community got disillusioned with Pod::Coverage when it went through a particularly unstable period and either ditched it entirely or moved it to author only tests.

    I am sure the author would be open to patches if you were so inclined.

    -stvn

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (6)
As of 2025-06-15 21:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.