1Pod::Coverage::Moose(3)User Contributed Perl DocumentatioPnod::Coverage::Moose(3)
2
3
4
6 Pod::Coverage::Moose - Pod::Coverage extension for Moose
7
9 use Pod::Coverage::Moose;
10
11 my $pcm = Pod::Coverage::Moose->new(package => 'MoosePackage');
12 print 'Coverage: ', $pcm->coverage, "\n";
13
15 When using Pod::Coverage in combination with Moose, it will report any
16 method imported from a Role. This is especially bad when used in
17 combination with Test::Pod::Coverage, since it takes away its ease of
18 use.
19
20 To use this module in combination with Test::Pod::Coverage, use
21 something like this:
22
23 use Test::Pod::Coverage;
24 all_pod_coverage_ok({ coverage_class => 'Pod::Coverage::Moose'});
25
27 package
28 This is the package used for inspection.
29
31 meta
32 Moose meta object.
33
34 BUILD
35 Initialises the internal Pod::Coverage object. It uses the meta object
36 to find all methods and attribute methods imported via roles.
37
39 Delegated to the traditional Pod::Coverage object are
40 coverage
41 covered
42 naked
43 uncovered
44 why_unrated
45
47 new
48 The constructor will only return a "Pod::Coverage::Moose" object if it
49 is invoked on a class that "can" a "meta" method. Otherwise, a
50 traditional Pod::Coverage object will be returned. This is done so you
51 don't get in trouble for mixing Moose with non Moose classes in your
52 project.
53
55 Moose, Pod::Coverage, Test::Pod::Coverage
56
58 Robert 'phaylon' Sedlacek <rs@474.at>
59
61 This library is free software; you can redistribute it and/or modify it
62 under the same terms as Perl itself.
63
64
65
66perl v5.12.0 2009-05-14 Pod::Coverage::Moose(3)