Pod::Coverage::Moose - L extension for L


Pod-Coverage-Moose documentation  | view source Contained in the Pod-Coverage-Moose distribution.

Index


NAME

Top

Pod::Coverage::Moose - Pod::Coverage extension for Moose

SYNOPSIS

Top

  use Pod::Coverage::Moose;

  my $pcm = Pod::Coverage::Moose->new(package => 'MoosePackage');
  print 'Coverage: ', $pcm->coverage, "\n";

DESCRIPTION

Top

When using Pod::Coverage in combination with Moose, it will report any method imported from a Role. This is especially bad when used in combination with Test::Pod::Coverage, since it takes away its ease of use.

To use this module in combination with Test::Pod::Coverage, use something like this:

  use Test::Pod::Coverage;
  all_pod_coverage_ok({ coverage_class => 'Pod::Coverage::Moose'});

ATTRIBUTES

Top

package

This is the package used for inspection.

METHODS

Top

meta

Moose meta object.

BUILD

Initialises the internal Pod::Coverage object. It uses the meta object to find all methods and attribute methods imported via roles.

DELEGATED METHODS

Top

Delegated to the traditional Pod::Coverage object are

coverage
covered
naked
uncovered
why_unrated

EXTENDED METHODS

Top

new

The constructor will only return a Pod::Coverage::Moose object if it is invoked on a class that can a meta method. Otherwise, a traditional Pod::Coverage object will be returned. This is done so you don't get in trouble for mixing Moose with non Moose classes in your project.

SEE ALSO

Top

Moose, Pod::Coverage, Test::Pod::Coverage

AUTHOR

Top

Robert 'phaylon' Sedlacek <rs@474.at>

COPYRIGHT AND LICENSE

Top


Pod-Coverage-Moose documentation  | view source Contained in the Pod-Coverage-Moose distribution.