Re: Code coverage tools?

[email protected] (Matt S Trout)
Newsgroups perl.moose
Message-ID <[email protected]>
On Fri, Feb 01, 2008 at 02:57:45PM -0500, Noel Maddy wrote:
> I'm starting to work with Moose, and I'm really impressed
> with its design.
> 
> However, I'm used to using Devel::Cover for code coverage,
> and it seems to skip code in Moose's attribute default coderefs.

Not directly a solution, but if you use 'builder' instead of default (which
I pretty much always do) thenthe actual default logic becomes a method.

-- 
      Matt S Trout       Need help with your Catalyst or DBIx::Class project?
   Technical Director                    http://www.shadowcat.co.uk/catalyst/
 Shadowcat Systems Ltd.  Want a managed development or deployment platform?
http://chainsawblues.vox.com/            http://www.shadowcat.co.uk/servers/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.