Coder Social home page Coder Social logo

pod-coverage-moose's Introduction

NAME

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

VERSION

version 0.05

SYNOPSIS

use Pod::Coverage::Moose;

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

DESCRIPTION

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

package

This is the package used for inspection.

cover_requires

Boolean flag to indicate that requires $method declarations in a Role should be trusted.

METHODS

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

Delegated to the traditional Pod::Coverage object are

  • coverage
  • covered
  • naked
  • uncovered
  • why_unrated

EXTENDED METHODS

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

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

AUTHOR

Robert 'phaylon' Sedlacek [email protected]

COPYRIGHT AND LICENSE

This software is copyright (c) 2007 by Robert 'phaylon' Sedlacek.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

CONTRIBUTORS

pod-coverage-moose's People

Contributors

autarch avatar berekuk avatar karenetheridge avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.