Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

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

by webfiend (Vicar)
on Aug 06, 2010 at 18:33 UTC ( #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?
Re: How can I test for Pod coverage of my Moose attributes?
by ikegami (Pope) 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 Your Mother (Canon) 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 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
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? | Other CB clients
Other Users?
Others studying the Monastery: (6)
As of 2014-12-27 06:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (176 votes), past polls